Skip to main content

AnimationWrapMode

AnimationWrapMode

TypeNameInterface Description
EnumClampForever = -2

Function: Plays back the animation. When it reaches the end, it will keep playing the last frame and never stop playing.

EnumOnce = 1

Function: When time reaches the end of the animation clip, the clip will automatically stop playing.

EnumPingPong = -1

Function: When time reaches the end of the animation clip, time will ping pong back between beginning and end.

EnumRepeat = 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) {
}
}
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies