Added Find Parent By Tag ProtoFlux Node Page |
Updated description, added link. |
||
Line 14: | Line 14: | ||
|}} | |}} | ||
The '''Find Parent By Tag''' node finds a parent object above the instance ([[Slot|Slot]]) that matches the given [[Tag]] ([[Type:String|String]]). | |||
{{Template:Note| Using this node to search the entire parent hiearchy 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 parent hiearchy 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:30, 20 March 2025
Find Parent By Tag
Slots
The Find Parent By Tag node finds a parent object above the instance (Slot) that matches the given Tag (String).
Inputs
Instance (Slot)
The slot to scan for parent slots from.
Tag (String)
The tag to look for above Instance (Slot).
SearchDepth (int)
How far to search for a parent with a tag that matches the given Tag (String).
Examples: 0 > Search immediate parent. 1 > Search parent of slot and it's next parent. -1 > Search all the way to Root (CAN BE HEAVY)
Outputs
* (Slot)
The result of the search.
Examples
-
An example code finding slots under and above other slots in a list, one of the nodes is a Find Parent By Tag.