AnimationWrapMode
AnimationWrapMode
| Type | Name | Interface Description |
|---|---|---|
| Enum | ClampForever = -2 | • Function: Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing. |
| Enum | Once = 1 | • Function: When time reaches the end of the animation clip, the clip will automatically stop playing. |
| Enum | PingPong = -1 | • Function: When time reaches the end of the animation clip, time will ping pong back between beginning and end. |
| Enum | Repeat = 0 | • Function: When time reaches the end of the animation clip, time will continue at the beginning. |
Examples
ClampForever = -2
let value = APJS.AnimationWrapMode.ClampForever;
Once = 1
let value = APJS.AnimationWrapMode.Once;
PingPong = -1
let value = APJS.AnimationWrapMode.PingPong;
Repeat = 0
let value = APJS.AnimationWrapMode.Repeat;
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use AnimationWrapMode here
}
onUpdate(deltaTime: number) {
}
}