General Events
Events
GLTF_ANIMATION_FINISHED
Emitted when all loops of an animation clip have finished.
Properties
Property | Type | Description |
---|---|---|
name | string | The name of the animation |
Example (Global)
world.events.addListener(world.events.globalId, ecs.events.GLTF_ANIMATION_FINISHED, (properties) => {
console.log(properties.name);
});
Example (Entity Specific)
world.events.addListener(component.eid, ecs.events.GLTF_ANIMATION_FINISHED, (properties) => {
console.log(properties.name);
});