Enumerate Children
The EnumarateChildren node get all the direct children in the hierarchy of the GameObject connected to it. It will execute code for child one by one every time you pass by the Input port.
Ports
Port Name |
Type |
Default Value |
Description |
Trigger |
|
Trigger indicate to the node to provide the next child. |
|
Trigger |
|
Reset the enumeration so next time the main input is triggered, the first child will be provided. |
|
[GameObject] |
|
The parent GameObject that will return its children. |
|
Outputs
Port Name |
Type |
Default Value |
Description |
Trigger |
|
Execute when a new child has been provided through the main input. Each time it execute, it process a new child in the list. |
|
Trigger |
|
Execute when the main input is triggered and there is no more child. |
|
[GameObject] |
|
The current child GameObject of the parent GameObject if any left. Will be null if none left. |
|
[Integer] |
|
The index of the current child GameObject in the parent Game Object if any left, or -1 otherwise. |
|