Class ExpandedStateList<TTarget>
Used in editor drawer part to store the state of expandable areas using EditorPrefBoolFlags for a list of elements.
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public class ExpandedStateList<TTarget> : ExpandedState<int, TTarget>
Type Parameters
Name | Description |
---|---|
TTarget | A type given to automatically compute the key. |
Constructors
Name | Description |
---|---|
ExpandedStateList(string) | Constructor will create the key to store in the EditorPref the state given generic type passed. The key will be formated as such prefix:TTarget:TState:UI_State. |
Methods
Name | Description |
---|---|
RemoveFlagAtIndex(int) | Removes a flag at a given index which causes the following flags' index to decrease by one. |
SwapFlags(int, int) | Swap flag between src index and dst index. |