- useBabylonStore(pinia?, hot?): Store<"babylon", _UnwrapAll<Pick<{
instance: ShallowRef<undefined | {
dispose: (() => void);
engine: Engine;
scene: Scene;
vrmScene: Scene;
}>;
setInstance: ((babylon) => void);
}, "instance">>, Pick<{
instance: ShallowRef<undefined | {
dispose: (() => void);
engine: Engine;
scene: Scene;
vrmScene: Scene;
}>;
setInstance: ((babylon) => void);
}, never>, Pick<{
instance: ShallowRef<undefined | {
dispose: (() => void);
engine: Engine;
scene: Scene;
vrmScene: Scene;
}>;
setInstance: ((babylon) => void);
}, "setInstance">> Parameters
Optional
pinia: null | Pinia
Optional
hot: StoreGeneric
Returns Store<"babylon", _UnwrapAll<Pick<{
instance: ShallowRef<undefined | {
dispose: (() => void);
engine: Engine;
scene: Scene;
vrmScene: Scene;
}>;
setInstance: ((babylon) => void);
}, "instance">>, Pick<{
instance: ShallowRef<undefined | {
dispose: (() => void);
engine: Engine;
scene: Scene;
vrmScene: Scene;
}>;
setInstance: ((babylon) => void);
}, never>, Pick<{
instance: ShallowRef<undefined | {
dispose: (() => void);
engine: Engine;
scene: Scene;
vrmScene: Scene;
}>;
setInstance: ((babylon) => void);
}, "setInstance">>
Properties
$id
$id: "babylon"
Returns a store, creates it if necessary.