Skip to content

store(...)

Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.

store(key: string, data: any): this;

Stores the supplied object on the device such that it can be accessed during a future execution of the experience.

Retrieve stored values using the retrieve(…) function.

ParameterTypeDescription
keystringThe name to store the value under.
dataJSON-compatible objectThe data to store. The passed value must be possible to serialize with JSON.stringify.

this