Skip to content

Enumeration: WrapMode

Enumeration Members

Enumeration Members

Default

Default = 0

Read loop mode from animation clips.

Defined in

src/components/anim/curveAnim/PropertyAnimClip.ts:16


Clamp

Clamp = 1

When the time reaches the end of the animation clip, the clip will automatically stop playing and the time will be reset to the beginning of the clip.

Defined in

src/components/anim/curveAnim/PropertyAnimClip.ts:20


Once

Once = 1

Stop the animation when the time reaches the end.

Defined in

src/components/anim/curveAnim/PropertyAnimClip.ts:24


Loop

Loop = 2

When the time reaches the end, replay from the beginning.

Defined in

src/components/anim/curveAnim/PropertyAnimClip.ts:28


PingPong

PingPong = 4

Play the animation. When it reaches the endpoint, it will continue to play the last frame and never stop playing.

Defined in

src/components/anim/curveAnim/PropertyAnimClip.ts:32


ClampForever

ClampForever = 8

Play the animation. When playing to the end, the animation is always in the sampling state of the last frame.

Defined in

src/components/anim/curveAnim/PropertyAnimClip.ts:36

Released under the MIT License