changing color in Unity.
I can usually stumble my way through this stuff but for some odd reason this has me stumped.
I wish to change the color of an object in code using c#.
Now this works:
What I want though is to use RGBA values instead because I will be changing them during game play. It is probably obvious but my tired little brain can't figure it out right now.
renderer.material.color = Color.red;
I have figured out what the internet is. You know what they say about an infinite number of monkeys hitting keys at random on an infinite number of typewriters for an infinite amount of time? Well the internet is like that. There is some big cosmic alien running that experiment here in order to find the answer to some big question or to create the greatest piece of literature known to the universe. From what I have seen so far I am sorry to say they are going to be greatly disappointed.