기술 자료

Unity Engine

Download Unity

Unity Engine

TryGetHandlerState<T>(HierarchyNodeType, out T)

Gets the state a node type handler keeps for this view model.
읽는 시간 1분최근 업데이트: 3시간 전

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.