IStateView
The generated view for a State.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Interface
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public interface IStateView
Remarks
Passed to StateView<T> as its StateView<T>.View. Add custom UI to IStateView.Root. Its contents 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 is .
cullingEnabledfalseProperties
Property | Description |
|---|---|
| Root | The root VisualElement of the state, to which custom UI can be added. |