-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't tween color of cc.Sprite #13229
Comments
@bofeng-song please discuss with @qiuguohua , who will take charge of it. |
1 similar comment
@bofeng-song please discuss with @qiuguohua , who will take charge of it. |
@BenoitFreslon Cocos Creator uses |
I misunderstand the issue. |
Yes it is. |
@BenoitFreslon , thanks for your report. I submitted a pull request here #16977 |
Cocos Creator version
3.6.1
System information
OSX
Issue description
Hello,
I want to tween the color of a cc.Sprite with this line:
But the color property is not present.
![image](https://user-images.githubusercontent.com/758680/199543100-cd53446c-6c2a-4627-af51-ba02887c6687.png)
Regarding this post, this bug should be fixed in CocosCretor 3.6
https://discuss.cocos2d-x.org/t/fade-in-and-out/55902/2
But I got this problem with CocosCreator 3.6.1.
I need to add UIOpacity component to change the opacity property.
tween(this.sprite1.getComponent(UIOpacity)).to(1, { opacity:0 }).start();
Relevant error log output
No response
Steps to reproduce
Add a Sprite component then try to tween the color.
tween(this.sprite1).to(3, { color:Color.TRANSPARENT }).start();
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: