@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
31 lines • 925 B
JavaScript
/**
* Composed of a frame, and an action function
*/
export class AnimationEvent {
/**
* Initializes the animation event
* @param frame The frame for which the event is triggered
* @param action The event to perform when triggered
* @param onlyOnce Specifies if the event should be triggered only once
*/
constructor(
/** The frame for which the event is triggered **/
frame,
/** The event to perform when triggered **/
action,
/** Specifies if the event should be triggered only once**/
onlyOnce) {
this.frame = frame;
this.action = action;
this.onlyOnce = onlyOnce;
/**
* Specifies if the animation event is done
*/
this.isDone = false;
}
/** @internal */
_clone() {
return new AnimationEvent(this.frame, this.action, this.onlyOnce);
}
}
//# sourceMappingURL=animationEvent.js.map