GetOrCreateHandlerState<T>(HierarchyNodeType)
Gets the state a node type handler keeps for this view model, creating it when there is none.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
public T GetOrCreateHandlerState<T>(HierarchyNodeType nodeType) where T : class, IHierarchyNodeTypeHandlerViewModelState, new()
Parameters
The node type of the handler owning the state.
Returns
Type | Description |
|---|---|
| T | The state. |