type
TypeScriptget type(): ComputeNodeGraph_StateTypeSwift declarationvar type: ComputeNodeGraph.StateTypeThe data type of the stored value.
struct · iOS 27.0+ · SDK 27.1
struct StateDefinitionA declaration of a named state value and where it lives in the simulation. State definitions are used by ``ComputeNodeGraph/Node/Kind/loadState(definition:)`` and ``ComputeNodeGraph/Node/Kind/storeState(definition:)`` nodes to read and write values at a particular scope.
get type(): ComputeNodeGraph_StateTypeSwift declarationvar type: ComputeNodeGraph.StateTypeThe data type of the stored value.
set type(value: ComputeNodeGraph_StateType)Swift declarationvar type: ComputeNodeGraph.StateTypeThe data type of the stored value.
static init(scope: ComputeNodeGraph_Scope, options: ComputeNodeGraph_StateDefinition_Options, type: ComputeNodeGraph_StateType): ComputeNodeGraph_StateDefinitionSwift declarationinit(scope: ComputeNodeGraph.Scope, options: ComputeNodeGraph.StateDefinition.Options, type: ComputeNodeGraph.StateType)get scope(): ComputeNodeGraph_ScopeSwift declarationvar scope: ComputeNodeGraph.ScopeThe scope that owns this state. For example, ``ComputeNodeGraph/Scope/element`` stores a value per particle, while ``ComputeNodeGraph/Scope/emitter`` stores a single value used by the emission stage.
set scope(value: ComputeNodeGraph_Scope)Swift declarationvar scope: ComputeNodeGraph.ScopeThe scope that owns this state. For example, ``ComputeNodeGraph/Scope/element`` stores a value per particle, while ``ComputeNodeGraph/Scope/emitter`` stores a single value used by the emission stage.
get options(): ComputeNodeGraph_StateDefinition_OptionsSwift declarationvar options: ComputeNodeGraph.StateDefinition.OptionsWhether this state is read, written, or both. See ``ComputeNodeGraph/StateDefinition/Options``.
set options(value: ComputeNodeGraph_StateDefinition_Options)Swift declarationvar options: ComputeNodeGraph.StateDefinition.OptionsWhether this state is read, written, or both. See ``ComputeNodeGraph/StateDefinition/Options``.
No declarations were skipped in this snapshot.