Skip to content

Type Alias: SsTextureSources ​

SsTextureSources = SsTextureSource | Record<string, SsTextureSource>

Defined in: packages/react-native-spritestudio/src/view/useSsTextures.ts:26

Textures to use instead of the ones a pack names, keyed by cellmap name.

A bare source is the shorthand for a pack with one cellmap, which is the common case and the one where the caller would otherwise have to know a name only the .ssab carries. The player resolves it to that cellmap once the pack has loaded, so the name is genuinely not needed there.