create Set Child Index ProtoFlux Node Page |
Add note that this node changes the OrderOffset of slots |
||
Line 15: | Line 15: | ||
Sets the offset of the provided Instance ([[Slot|Slot]]) in the inspector compared to others that have the same immediate parent to Index ([[Types:Int|Int]]). | Sets the offset of the provided Instance ([[Slot|Slot]]) in the inspector compared to others that have the same immediate parent to Index ([[Types:Int|Int]]). | ||
It should be noted that this node will normally update the OrderOffset of all slots adjacent to the Instance slot (i.e. having the same Parent slot as Instance) to ensure that the Instance slot gets the correct child index. | |||
== Inputs == | == Inputs == |
Latest revision as of 09:06, 11 February 2024
Set Child Index
Slots
Sets the offset of the provided Instance (Slot) in the inspector compared to others that have the same immediate parent to Index (Int).
It should be noted that this node will normally update the OrderOffset of all slots adjacent to the Instance slot (i.e. having the same Parent slot as Instance) to ensure that the Instance slot gets the correct child index.
Inputs
* (Call)
Call to set the index of Instance (Slot) to Index (Int).
Instance (Slot)
The slot to set the child index of.
Index (Int)
The child index to set Instance (Slot) to.
Outputs
Next (Continuation)
sends an impulse after * (Call) is called and Instance (Slot) has had it's index set to Index (Int).
Examples
-
An example code using set child index.