Class ExpandedStateBase<TState>
Used in editor drawer part to store the state of expandable areas.
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public abstract class ExpandedStateBase<TState> where TState : struct, IConvertible
Type Parameters
Name | Description |
---|---|
TState | An enum to use to describe the state. |
Properties
this[TState]
Get or set the state given the mask.
Declaration
public bool this[TState mask] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
TState | mask | The filtering mask |
Property Value
Type | Description |
---|---|
bool | True: All flagged area are expended |
Methods
CollapseAll()
Utility to set all states to false
Declaration
public abstract void CollapseAll()
ExpandAll()
Utility to set all states to true
Declaration
public abstract void ExpandAll()
GetExpandedAreas(TState)
Accessor to the expended state of this specific mask.
Declaration
public abstract bool GetExpandedAreas(TState mask)
Parameters
Type | Name | Description |
---|---|---|
TState | mask | The filtering mask |
Returns
Type | Description |
---|---|
bool | True: All flagged area are expended |
SetExpandedAreas(TState, bool)
Setter to the expended state.
Declaration
public abstract void SetExpandedAreas(TState mask, bool value)
Parameters
Type | Name | Description |
---|---|---|
TState | mask | The filtering mask |
bool | value | The expended state to set |