loadAseprite(name: string | null, imgSrc: LoadSpriteSrc, jsonSrc: string | AsepriteData): Asset<SpriteData>

Load a sprite with aseprite spritesheet json (should use "array" in the export options).

paramname- The asset name.

paramimgSrc- The image resource url.

loadAseprite("car", "sprites/car.png", "sprites/car.json")

returnsThe asset data.

sincev2000.0