IdaJS
    Preparing search index...

    Variable useSceneStore

    useSceneStore: (...args: string[]) => Record<string, any>

    Provides access to the scene state object, that you can use to persist any scene state variables. Scene state is reset every time the scene is reloaded. Keep the types you use here simple, as they will be serialized to JSON.

    Type Declaration

      • (...args: string[]): Record<string, any>
      • Parameters

        • ...args: string[]

          Optional path of the subobject in the store. For example useSceneStore("cellar", "interior") will store state in sceneSaveData.cellar.interior

        Returns Record<string, any>