Skip to content

Function: useSsScene() ​

useSsScene(): SsSceneRegistry | null

Defined in: packages/react-native-spritestudio/src/view/SpriteStudioScene.tsx:48

The registry a <SpriteStudioSprite> enrols in, or null outside a scene.

Exported so a sprite can say plainly that it needs a scene rather than failing as a component that renders nothing.

Returns ​

SsSceneRegistry | null