SpriteAssetData: {
    pixelsPerUnit: number;
    renderMode: number;
    textureAtlasAsset: number;
}

Represents the data for a Sprite asset.

Type declaration

  • pixelsPerUnit: number

    The number of pixels that represent one PlayCanvas unit. You can use this value to change the rendered size of your sprites.

  • renderMode: number

    The render mode of the asset. Can be: pc.SPRITE_RENDERMODE_SIMPLE, pc.SPRITE_RENDERMODE_SLICED, pc.SPRITE_RENDERMODE_TILED.

  • textureAtlasAsset: number

    The asset id of the texture atlas asset that contains all the frames that this asset is referencing.