Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetHandlerState<T>(HierarchyNodeType, out T)

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

Definition

  • Type: Method
  • Namespace: Unity.Hierarchy
  • Assembly: UnityEngine.HierarchyCoreModule

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.