MCPcopy Create free account
hub / github.com/melonjs/melonJS / getAnimationNames

Method getAnimationNames

packages/melonjs/src/renderable/sprite.js:601–603  ·  view source on GitHub ↗

* the names of every animation defined on this sprite (via * Sprite#addAnimation). * @returns {string[]} the defined animation names * @example * sprite.addAnimation("walk", [0, 1, 2, 3]); * sprite.addAnimation("idle", [4, 5]); * sprite.getAnimationNames(); // ["walk", "idle"]

()

Source from the content-addressed store, hash-verified

599 * sprite.getAnimationNames(); // ["walk", "idle"]
600 */
601 getAnimationNames() {
602 return this._frameAnim.getAnimationNames();
603 }
604
605 /**
606 * change the current texture atlas region for this sprite

Callers 3

sprite.spec.jsFile · 0.45
gltf_model.spec.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected