Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:GetChild: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Get Child (ProtoFlux) to ProtoFlux:Get Child: Creating protoflux Namespace
m YoshBot moved page ProtoFlux:Get Child to ProtoFlux:GetChild: Automated: removing spaces from ProtoFlux namespace
 
(4 intermediate revisions by 2 users not shown)
Line 17: Line 17:
== Inputs ==
== Inputs ==


=== Instance ===
=== Instance ([[Slot|Slot]]) ===


The [[Type:Slot | slot]] you want to find the child of.
The [[Type:Slot | slot]] you want to find the child of.


=== ChildIndex ===
=== ChildIndex ([[Type:Int|int]])===


The index of the children you want as an [[Type:Int | int]].
The index of the children you want as an [[Type:Int | int]].
Line 29: Line 29:
== Outputs ==
== Outputs ==


=== * ===
=== * ([[Slot|Slot]]) ===


The [[Type:Slot | slot]] found by the node from the index. If no slot is found, it will return null.
The [[Type:Slot | slot]] found by the node from the index. If no slot is found, it will return null.
Line 35: Line 35:
== Examples ==
== Examples ==


[[File:GetChildExample.png | Simple flux example of GetChild on an empty object having three children. | 750px]]
<gallery widths=480px heights=480px>
File:GetChildExample.png | Simple flux example of GetChild on an empty object having three children.
</gallery>


[[Category:ProtoFlux:Slots]]
[[Category:ProtoFlux:Slots]]
[[Category:ContinuouslyChanging nodes]]

Latest revision as of 00:20, 21 August 2025

GetChild
Instance
*
ChildIndex
Slots

Returns the children of a slot from its index.

Inputs

Instance (Slot)

The slot you want to find the child of.

ChildIndex (int)

The index of the children you want as an int.

Starts at 0.

Outputs

* (Slot)

The slot found by the node from the index. If no slot is found, it will return null.

Examples