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).
param
name- The asset name.
param
imgSrc- The image resource url.
loadAseprite("car", "sprites/car.png", "sprites/car.json")
returns
The asset data.
since
v2000.0