Here is my setup:
- I have a black icon of a lock stored under sprites/lock.png
- The lock.png is part of my sprites.atlas
- In my GUI I created a box with sprites/lock.png as texture
Now I want the change the color of the sprite from black to white.
I tried it with gui.set_color(gui.get_node("lock"), vmath.vector4(1, 1, 1, 1))
(See also: GUI color) but it doesn’t do anything.
Do I need to apply a material?