Documentation

Unity Engine

Download Unity

Unity Engine

TryGetHandlerState<T>(HierarchyNodeType, out T)

Gets the state a node type handler keeps for this view model.
Read time 1 minuteLast updated 6 hours ago

Definition

TryGetHandlerState<T>(HierarchyNodeType, T)

public bool TryGetHandlerState<T>(HierarchyNodeType nodeType, out T state) where T : class, IHierarchyNodeTypeHandlerViewModelState

Parameters

The node type of the handler owning the state.

state

T
When this method returns, the state, or
null
when there is none.

Returns

Type

Description

bool
true
if the handler has state of that type,
false
otherwise.