Clear Dynamic Variables (LogiX node)

From Neos Wiki
Jump to navigation Jump to search
This page contains changes which are not marked for translation.
Clear Dynamic Variables
'Clear Dynamic Variables' LogiX node
Inputs
  Impulse Clear
  Slot Target
  String SpaceName
Outputs
  Impulse OnNotFound
  Impulse OnCleared
  Int ClearedCount

The Clear Dynamic Variables node will attempt to delete all DynamicField<T>, DynamicReference<T>, DynamicReferenceVariable<T>, and DynamicValueVariable<T> components bound to a DynamicVariableSpace with the input SpaceName when an impulse is received at Clear.

Usage

The Target input specifies where in the world hierarchy the node should start searching for a DynamicVariableSpace, by default this is the root slot. The node searches for a DynamicVariableSpace with the input SpaceName starting with the Target slot, if no exact match is found it will then perform an upward search of the world hierarchy.


The OnNotFound output will fire an impulse if an impulse is received at Clear but the node is unable to find a DynamicVariableSpace with the input SpaceName.


The OnCleared output will fire an impulse if a matching DynamicVariableSpace is found. Under this condition, this output will fire regardless of whether any dynamic variable components were deleted.


The ClearedCount output provides the number of components which were deleted. This data is only available for the duration of the impulse chain fired from OnCleared.

Examples

Node Menu

Variables
Back Storage Clear Dynamic Variables Clear Dynamic Variables of Type`1 Create Dynamic Variable`1 Delete Dynamic Variable`1 Dynamic Variable Input With Events`1
Dynamic Variable Input`1 Read Cloud Variable`1 Read Dynamic Variable`1 Write Cloud Variable`1 Write Dynamic Variable`1 Write Or Create Dynamic Variable`1