Monday, June 6, 2022
HomeGame DevelopmentWrapMode Code in 3.x - Cocos Creator

WrapMode Code in 3.x – Cocos Creator


@slackmoehrle @huynhthuan
Hello, I’m making an attempt use wrapMode in 3.x nevertheless it in not working
right here is my code

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

Please assist should you do this sort of work.


please do this
let animState = this.Trace.getComponent(Animation)
animState.getState(this.animState.defaultClip.identify).wrapMode = AnimationClip.WrapMode.Reverse;
animState.play();

thanks bro It’s working;

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments