WrapMode Code in 3.x

@slackmoehrle @huynhthuan
Hi, I’m trying use wrapMode in 3.x but it in not working
here is my code

 let animState = this.Hint.getComponent(Animation)
 animState.defaultClip.wrapMode = AnimationClip.WrapMode.Reverse;
 animState.play();

Please help if you do this type of work.

please try this
let animState = this.Hint.getComponent(Animation)
animState.getState(this.animState.defaultClip.name).wrapMode = AnimationClip.WrapMode.Reverse;
animState.play();

thanks bro It’s working;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.