Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Thakee Nathees |
how to change the opacity of a sprite ? please someone help me!!
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Thakee Nathees |
how to change the opacity of a sprite ? please someone help me!!
Reply From: | kidscancode |
Look at the “Modulate” property in the Inspector.
If you want to do it in code:
modulate.a = 0.5
Reply From: | sinistro25 |
If you use modulate it will change the opacity and color of the node and all its children. If you want to change only the modulation of the node you can use selfmodulate. To change opacity you want to modify the alpha channel.
And how do you do this?
fccoelho | 2023-02-28 16:30