Class AdvancedProperties
Global accessor to advanced properties
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public static class AdvancedProperties
Properties
enabled
If the show advanced properties is enabled
Declaration
public static bool enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
AddAdvancedPropertiesBoolMenuItem(GenericMenu)
Adds an entry to toggle Advanced Properties
Declaration
public static void AddAdvancedPropertiesBoolMenuItem(this GenericMenu menu)
Parameters
| Type | Name | Description |
|---|---|---|
| GenericMenu | menu | The menu where to add the Advanced Properties entry. |
AddAdvancedPropertiesBoolMenuItem(GenericMenu, Func<bool>, Action)
Adds an entry to toggle Advanced Properties
Declaration
public static void AddAdvancedPropertiesBoolMenuItem(this GenericMenu menu, Func<bool> hasMoreOptions, Action toggleMoreOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| GenericMenu | menu | The menu where to add the Advanced Properties entry. |
| Func<bool> | hasMoreOptions | If the option is checked |
| Action | toggleMoreOptions | The toggle action |
BeginGroup(AnimFloat)
Starts the Advanced Properties highlight
Declaration
public static bool BeginGroup(AnimFloat animation = null)
Parameters
| Type | Name | Description |
|---|---|---|
| AnimFloat | animation | The animation of the highlight. If null, the global animation value is used. |
Returns
| Type | Description |
|---|---|
| bool | Tru, if the advanced properties is enabled |
EndGroup()
Ends the scope of highlight of advanced properties
Declaration
public static void EndGroup()
Events
advancedPreferenceChanged
Global event when the advanced preferences have changed
Declaration
public static event Action<bool> advancedPreferenceChanged
Event Type
| Type | Description |
|---|---|
| Action<bool> |