At the moment I have one texture on a sphere and the texture has three different colours:
eg: white or in RGBA (1,1,1,1), Black (0,0,0,1) and red(1,0,0,1).
I then have three different buttons one for each colour and I want that button to change the texture colour to green (0,1,0,1). My initial plan of attack was to do something like this: Texture.color(1,1,1,1) = color(0,1,0,1). Selecting all the white from a texture and make it green. I’ve tried to use getColor & setColor, while using a material that is the texture.
I’m quite lost in what to do/ wondering if it is even possible to do in unity. Would I be changing the texture or material/ which would be better?
My Coding experience is quite low, but I’m willing to learn to get it working.
In the end I’ll actually have it so I can change it to any colour using a colour picker, but for testing purposes I just want to stick with one colour.
Any help on this will be much appreciated.