Struct ExpandedState<TState, TTarget>
Used in editor drawer part to store the state of expendable areas.
상속된 멤버
네임스페이스: UnityEditor.Experimental.Rendering.HDPipeline
어셈블리: solution.dll
구문
public struct ExpandedState<TState, TTarget> where TState : struct, IConvertible
타입 파라미터
이름 | 설명 |
---|---|
TState | An enum to use to describe the state. |
TTarget | A type given to automatically compute the key. |
생성자
이름 | 설명 |
---|---|
ExpandedState(TState, string) | Constructor will create the key to store in the EditorPref the state given generic type passed. |
프로퍼티
이름 | 설명 |
---|---|
this[TState] | Get or set the state given the mask. |
메서드
이름 | 설명 |
---|---|
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. |