ProtoFlux:FindChildByTag: Difference between revisions

From Resonite Wiki
Added Find Child By Tag ProtoFlux Node Page
 
Updated description, added link.
Line 14: Line 14:
|}}
|}}


Finds a child object below Instance ([[Slot|Slot]]) that matches the given Tag ([[Type:String|String]]).
The '''Find Child By Tag''' node finds a child object below the instance ([[Slot|Slot]]) that matches the given [[Tag]] ([[Type:String|String]]).


{{Template:Note| Using this node to search the entire root in ProtoFlux that tries to evaluate every frame will generate considerable frame lag. If searching the root has to be done, put the result into a cached variable ([[ProtoFlux:Data Model Store|Data Model Store]]) rather than searching every game tick.|warning}}
{{Template:Note| Using this node to search the entire root in ProtoFlux that tries to evaluate every frame will generate considerable frame lag. If searching the root has to be done, put the result into a cached variable ([[ProtoFlux:Data Model Store|Data Model Store]]) rather than searching every game tick.|warning}}

Revision as of 21:28, 20 March 2025

Find Child By Tag
Instance
*
Tag
SearchDepth
Slots

The Find Child By Tag node finds a child object below the instance (Slot) that matches the given Tag (String).

Using this node to search the entire root in ProtoFlux that tries to evaluate every frame will generate considerable frame lag. If searching the root has to be done, put the result into a cached variable (Data Model Store) rather than searching every game tick.

Inputs

Instance (Slot)

The slot to scan for child slots from.

Tag (String)

The tag to look for below Instance (Slot).

SearchDepth (int)

How far to search for a child with a tag that matches the given Tag (String).

Examples: 0 > Search immediate children. 1 > Search children of slot including those slot's children. -1 > Search infinitely far down (HEAVY)

Outputs

* (Slot)

The result of the search.

Examples