ドキュメント

Unity Engine

Unity Engine

Root

The root VisualElement of the state, to which custom UI can be added.
読み終わるまでの所要時間 1 分最終更新 2ヶ月前

Definition

VisualElement Root { get; }

Remarks

The contents of
Root
are cleared each time the state returns from being culled. Cache any custom UI you allocated in StateView<T>.OnViewBuilt and re-add it from StateView<T>.OnCullingChanged when
cullingEnabled
is false.