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
| Name | Description |
|---|---|
| this[TState] | Get or set the state given the mask. |
Methods
| Name | Description |
|---|---|
| CollapseAll() | Utility to set all states to false |
| ExpandAll() | Utility to set all states to true |
| GetExpandedAreas(TState) | Accessor to the expended state of this specific mask. |
| SetExpandedAreas(TState, bool) | Setter to the expended state. |