m →OnlyExplicit (bool): type page Tag: 2017 source edit |
Added category: ContinuouslyChanging nodes |
||
Line 48: | Line 48: | ||
[[Category:ProtoFlux:Slots]] | [[Category:ProtoFlux:Slots]] | ||
[[Category:ContinuouslyChanging nodes]] |
Latest revision as of 06:50, 27 May 2025
Get Object Root
Slots
Returns the "root" slot of an object, from a slot child input.
Inputs
Instance (Slot)
A slot within the object you want the root of.
OnlyExplicit (bool)
If this is true, only slots with an ObjectRoot component will be considered a root.
If this is false, slots containing a component implementing IObjectRoot
are also considered roots. These are:
Outputs
* (Slot)
Will return a slot being the root of the object. If no slot was found, the input slot is returned.
Examples
-
Two nodes setup showing how to use the Get Object Root ProtoFlux node
Using this node on a hit collider slot of a Grabbable object with OnlyExplicit set to false you can get the slot containing the Grabbable component which is most likely going to be the object's root, even if the object doesn't have a explicit ObjectRoot component.