---
url: https://cri-middleware.github.io/SSPlayerForWeb/api/@spritestudio/ssplayer-pixi-ui/type-aliases/SSUiClip.md
---
# Type Alias: SSUiClip

> **SSUiClip** = { `animation`: `string`; `label?`: `string`; } | { `animation?`: `string`; `label`: `string`; }

Defined in: [packages/ssplayer-pixi-ui/src/uiState.ts:38](https://github.com/cri-middleware/SSPlayerForWeb/blob/eb9d544908210befb40d3729ed6fde7adc44f61a/packages/ssplayer-pixi-ui/src/uiState.ts#L38)

What a state plays instead of the label named after it: the section of
`animation` that starts at `label`.

With only `animation`, the whole of it. With only `label`, that label in the
animation the states are read from. A section runs to the frame before the
next label, or to the end of the animation.
