I’m creating a UI for a game in which I change the colors of images quite often.
For example, I have a button build from all white images, which I assign different colors. When the button is clickable, I want it to be green, when it can’t be clicked, it’s grey. Same with background images, health bars and so on.
As of now, I use materials to store all colors and assign them to the images once they should change.
For me, this solution seems quite off. I have a ton of materials which are difficult to organize, I have to assign every UI Script the required materials, I can’t properly lerp colors and so on.
Is there a better way to store all those colors and assign them quick and easy, like a dedicated color storage script?
Thanks in advance!