Opacity and Color Tint animations made on UI editor not working in game

Hello,
I made a simple animation on the UI Editor using movement, opacity and color tint modifications.
It seems to work correctly on the editor, but when I export it, only the movement works correctly. Opacity and Color TInt simply do not change.

Is that a bug? How do I fix it?

I’m currently using Cocostudio 1.3.0.1 and Cocos2d-x 2.2.3

Thanks in advance!

Hi~The UI Edit not support Opacity animation now,It will be provide in the future.

But the “Color Tint animations” is support.

Hi!
Same problem. 2.2.3, Android and win32.
Fixed it by changing class Widget : public CCNode to class Widget : public CCNodeRGBA in UIWidget.h, line 82.

Just in case anybody comes across this. It seems that as of Cocos Studio 3.10, at least, opacity and color can be animated in the editor, and that works all the way through to a running app.

The key thing is that you tick the “Begin to record frame” option in the animation window. This way keyframes are recorded properly when you make changes.

1 Like