Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Root

The root VisualElement of the node, to which custom UI can be added.
Read time 1 minuteLast updated 6 days ago

Definition

VisualElement Root { get; }

Remarks

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