ProtoFlux:Get Child: Difference between revisions

From Resonite Wiki
m fix headings
m add links to types
Line 19: Line 19:
=== Instance ===
=== Instance ===


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


=== ChildIndex ===
=== ChildIndex ===


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


Starts at 0.
Starts at 0.
Line 31: Line 31:
=== * ===
=== * ===


The 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.


== Examples ==
== Examples ==

Revision as of 12:14, 17 January 2024

GetChild
Instance
*
ChildIndex
Slots

Returns the children of a slot from its index.

Inputs

Instance

The slot you want to find the child of.

ChildIndex

The index of the children you want as an int.

Starts at 0.

Outputs

*

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

Examples

Simple flux example of GetChild on an empty object having three children.