Function loadSpriteAtlas
-
loadSpriteAtlas(
engine: EngineContext,
textureUrl: string,
options?: LoadAtlasOptions,
): Promise<SpriteAtlas>Parameters
- engine: EngineContext
- textureUrl: string
- options: LoadAtlasOptions = {}
Returns Promise<SpriteAtlas>
Load a sprite atlas from an image URL. PR 1 supports only the
gridSizepath: the texture is fetched as a non-Y-flipped image (so atlas UVs map top-down with(0,0)at the image top-left) and partitioned into a grid viacreateGridSpriteAtlas.