Latch
- Last UpdatedDec 07, 2023
- 2 minute read
The Latch node works as a simple memory.
Each time a nextValue is set, the previous nextValue is copied to Latch value before being overwritten.
Platform support
This node is supported on XR-Windows platform only.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
No support |
No support |
No support |
No support |
|
|
|
|
|
|
Code example
This is a code example for the Latch node.
<Latch name="memory" value="initial"/>
Latch fields
These are the fields for Latch node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > Latch
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
nextValue |
Based on type |
Optional |
Not set |
When set, previous nextValue overrides value. |
|
type |
sstring |
Optional |
sstring |
Defines inputs and output type. |
|
value |
Based on type |
Optional |
Not set |
Should be set only at node definition. |