Hi, can you point me to an example on how animationClip properties can be changed at runtime ?
I would like for instance to randomise the spriteFrame of this clip
Hi, can you point me to an example on how animationClip properties can be changed at runtime ?
I would like for instance to randomise the spriteFrame of this clip
I don’t think animation clip data is modifiable in runtime, but you can try to use Animation Frame Event to trigger your custom script, so that you can control any property during the animation process
https://docs.cocos.com/creator/manual/en/animation/animation-component.html#frame-events
I’ll give it a try