Skip to content

Interface: SsTextureInfo ​

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:70

One texture a pack needs, read out of its .ssab.

Sampling does not come along: the .ssab carries the SpriteStudio filter and wrap, but both are the engine's to choose (see SsTextureOptions).

Properties ​

embeddedLength ​

embeddedLength: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:84

Size of the encoded image an embedded pack carries, 0 for a reference one.

The bytes themselves come from SsContext.copyEmbeddedTexture, asked for only when the atlas is not decoded already: copying every one on every load would pay again for each atlas the image cache holds.


imagePath ​

imagePath: string

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:76

Path to the image relative to the .ssab, or empty when embedded-only.


name ​

name: string

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:74

Cellmap name, or an external texture's file name.


textureHash ​

textureHash: number

Defined in: packages/react-native-spritestudio/src/specs/SsRuntime.nitro.ts:72

Look this up with DrawBatch.texture_hash directly.