Get Local Value
The Get Local Value node retrieves the value associated with a specific key from the local storage. It is designed to fetch previously saved data so it can be used during runtime.
Inputs
Key (String) : The unique identifier for the data you want to retrieve.
Outputs
Value (String) : The value associated with the provided key, returned as a string. If the key does not exist, the output will be an empty string or a default value (depending on your implementation).
How It Works
When this node is executed, it searches the local storage for the provided Key . If the key exists, the associated value is returned as a string. If the key does not exist, the node will return an empty string or handle the absence of data gracefully.
Best Practice: Combine with Has Local Value
To avoid unexpected behavior when attempting to retrieve non-existent keys, it’s recommended to use the Get Local Value node in combination with the Has Local Value ( Has Local Value ) node. Before retrieving a value, check if the key exists using Has Local Value ( Has Local Value ). This ensures that your logic only attempts to access valid data, improving reliability and reducing potential errors.
Use Cases
Retrieve user preferences, such as saved settings or configurations.
Load game progress, such as the current level or score.
Access AR-specific data, like object positions or user-generated content, to restore previous states.

Last updated