Function: LoadSpriteFrameClip()
ts
function LoadSpriteFrameClip(
loader,
urls,
options
): Promise<AnimationClip>;Loads urls as textures (in order), then builds a clip referencing the generated ids. Note: lexicographic sort of unpadded filenames (star_1, star_10, star_2) misorders — sort naturally or zero-pad before passing in.
Parameters
| Parameter | Type |
|---|---|
loader | IAssetLoader |
urls | readonly string[] |
options | LoadSpriteFrameClipOptions |
Returns
Promise<AnimationClip>