Skip to content

@modoki/engine / index / spriteAnimHasClip

Function: spriteAnimHasClip() ​

spriteAnimHasClip(anim, name): boolean

Does this animator's clipSet asset have a clip by name? Used by the character system to switch tracks only to a clip that actually exists.

Parameters ​

anim ​

SpriteAnimSource

name ​

string

Returns ​

boolean

Built with Modoki.