ProtoFlux:Find Parent By Name

From Resonite Wiki
Revision as of 19:23, 10 February 2024 by 989onan (talk | contribs) (added Find Parent By Name ProtoFlux Node Page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Find Parent By Name
Instance
*
Name
MatchSubstring
IgnoreCase
SearchDepth
Slots

Finds a parent object above Instance (Slot) that matches the given arguments

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 (Data Model Store) rather than searching every game tick.

Inputs

Instance (Slot)

The slot to scan for parent slots with.

Name (String)

The name to look for above Instance (Slot).

MatchSubstring (bool)

Whether to search for parents above Instance (Slot) that their name contains Name (String) instead of the entire name being equal.

IgnoreCase (bool)

Whether the capitalization should matter or not when searching for a parent above Instance (Slot).

SearchDepth (int)

How far to search for a parent with the provided search arguments

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