addTextureAtlas method

void addTextureAtlas(
  1. String name,
  2. String url, [
  3. TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY,
  4. BitmapDataLoadOptions? options,
])

Implementation

void addTextureAtlas(String name, String url,
    [TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY,
    BitmapDataLoadOptions? options]) {
  final loader = TextureAtlas.load(url, textureAtlasFormat, options);
  _addResource('TextureAtlas', name, url, loader);
}