ProtoFlux:Clear Dynamic Variables Of Type

From Resonite Wiki
Clear Dynamic Variables Of Type
*
OnNotFound
Target
OnCleared
SpaceName
ClearedCount
Dynamic

The Clear Dynamic Variables Of Type node takes in a slot hierarchy and a string literal path of the dynamic space name. For more information, see Dynamic Variables. This node then uses the selected type and searches through that hierarchy and only removes the dynamic variables of that matching type.

Keep in mind that the top most output is OnNotFound. This can be confusing (especially if you're not paying attention when connecting nodes) when the code fires and nothing happens.

Inputs

* (Call)

Calls an impulse to clear all dynamic variables of that type from a given dynamic space.

Target (Slot)

The slot hierarchy for this node to look through.

SpaceName (string)

The dynamic space name to find and clear out the dynamic variables of declared type from.

Outputs

OnNotFound (Continuation)

Fires when the path is incorrect or there is nothing to find in the given slot hierarchy that matches that type.

OnCleared (Continuation)

Fires when the dynamic space name is found and all dynamic variables of that type under that name is removed.

ClearedCount (int)

Returns the number of dynamic variables of that type that have been removed by this node.