Create Dynamic Variable`1 (LogiX node)

From Neos Wiki
Revision as of 07:52, 20 February 2022 by Aesc (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Other languages:
English • ‎日本語

This article or section is a Stub. You can help the Neos Wiki by expanding it.


Create Dynamic Variable`1
noframe
Inputs
  Impulse WriteOrCreate
  Slot Target
  String VariableName
  T InitialValue
  Bool CreateDirectlyOnTarget
  Bool CreateNonPersistent
Outputs
  Impulse OnCreated
  Impulse OnAlreadyExists
  Impulse OnNotFound

Introduction

The Create Dynamic Variable`1 node attempts to create a Dynamic Variable of the specified Type on the slot of the nearest DynamicVariableSpace to the Target Slot.

As usual, precautions related to the duplication and reparenting of dynamic variables apply, as described on the Dynamic Variables page.

Usage

Depending on the type of InitialValue, this component will attach a DynamicValueVariable`1 or DynamicReferenceVariable`1 component to the slot containing the nearest DynamicVariableSpace.

InitialValue is shown as being a T value for demonstration purposes, however it will be composed of the type selected in the LogiX browser, or specified in the Component Attacher.

When using the Component Attacher, you may specify any valid FrooxEngine or BaseX type by following the instructions on the Creating a custom LogiX Node page.

CreateDirectlyOnTarget overrides the default functionality of this node, and creates the Dynamic Variable directly on the Target slot, instead of the slot of the nearest DynamicVariableSpace.

CreateNonPersistent causes the resultant Dynamic Variable to be created as a non-persistent component, which will not be saved when the object or world is reloaded.

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