add getobjectroot |
Explain OnlyExplicit |
||
Line 13: | Line 13: | ||
|}} | |}} | ||
Returns the root [[Slot | slot]] of an object from one slot | Returns the root [[Slot | slot]] of an object from one slot input which is a child of the specified object. | ||
== Inputs == | == Inputs == | ||
Line 23: | Line 23: | ||
=== OnlyExplicit === | === OnlyExplicit === | ||
: | If this is true, it will explicitly look for slots which have a ObjectRoot component. | ||
If this is false, it will look for slots containing a component which implements IObjectRoot. These include: | |||
* Legacy Panel | |||
* SceneInspector | |||
* ObjectRoot | |||
* Grabbable | |||
* ProtoFluxNode | |||
== Outputs == | == Outputs == | ||
Line 29: | Line 37: | ||
=== * === | === * === | ||
Will return a [[Type:Slot | slot]] being the root of the object | Will return a [[Type:Slot | slot]] being the root of the object. | ||
If no such component is found, the initial slot itself will be returned. | If no such component is found, the initial slot itself will be returned. |
Revision as of 19:03, 17 January 2024
Get Object Root
Slots
Returns the root slot of an object from one slot input which is a child of the specified object.
Inputs
Instance
A slot within the object you want the root of.
OnlyExplicit
If this is true, it will explicitly look for slots which have a ObjectRoot component.
If this is false, it will look for slots containing a component which implements IObjectRoot. These include:
- Legacy Panel
- SceneInspector
- ObjectRoot
- Grabbable
- ProtoFluxNode
Outputs
*
Will return a slot being the root of the object.
If no such component is found, the initial slot itself will be returned.