The '''ObjectRoot''' component marks a [[Slot|slot]] as the root of an object, where an object is the slot itself plus all of its child slots, recursively.
The '''ObjectRoot''' component marks a [[Slot|slot]] as the root of an object, where an object is the slot itself plus all of its child slots, recursively.
|RemoveChildrenObjectRoots:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| will recursively delete any ObjectRoot components from this slot's children.
|RemoveChildrenObjectRoots:[[Type:Func`1|Func`1]]<[[Type:Int|Int]]>|[[Type:Func`1|Func`1]]<[[Type:Int|Int]]>|false| will recursively delete any ObjectRoot components from this slot's children.
}}
}}
The button at the bottom of the component, "Remove all children object roots" will recursively delete any ObjectRoot components from this slot's children.
== Usage ==
== Behavior ==
Setting a slot as the ObjectRoot helps the [[Scene Inspector]]'s "up to object root" button find the root of the object.
Setting a slot as the ObjectRoot helps the [[Scene Inspector]]'s "up to object root" button find the root of the object.