The DataStoreWithScene object used to store and retrieve session-scoped data. Data persists across multiple Snaps within the same Lens session (until a different Lens is opened). Unlike PersistentStorageSystem#store, this store supports saving procedural assets such as MeshBuilder meshes and ProceduralTextureProvider textures.
The GeneralDataStore object used to store and retrieve data.
Returns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
Allows data to be stored and retrieved between Lens sessions. In other words, data can be saved on device and loaded back in the next time the Lens is opened. Can be accessed with
global.persistentStorageSystem.See the Persistent Storage guide for more information.
Example