---
url: https://cri-middleware.github.io/SSPlayerForReactNative/api/functions/SpriteStudioScene.md
---
# Function: SpriteStudioScene()

> **SpriteStudioScene**(`__namedParameters`): `ReactNode`

Defined in: [packages/react-native-spritestudio/src/view/SpriteStudioScene.tsx:77](https://github.com/cri-middleware/SSPlayerForReactNative/blob/ddb0878ad347fd4a411e4e2eb0829a948cb07ff8/packages/react-native-spritestudio/src/view/SpriteStudioScene.tsx#L77)

Layer 4 — **many animations, one canvas and one clock**.

`<SpriteStudioView>` is one animation fitted to its own box, and N of them
are N Skia canvases and N `requestAnimationFrame` loops. A scene is one of
each however many sprites are in it: the tick walks its members in draw
order, advances each and draws each into a single recording.

This is the arrangement Layer 3 was built for and the reason `advance(dt)` is
externally clocked.

Ordering is `z` then enrolment order. Enrolment order rather than JSX order
because a sprite can be nested inside any component in between, and React
gives no reliable document order across that; `z` is the way to say it
explicitly, and it is worth saying whenever it matters.

## Parameters

### \_\_namedParameters

[`SpriteStudioSceneProps`](../interfaces/SpriteStudioSceneProps.md)

## Returns

`ReactNode`
