Hi, i’m new to Unity and I am currently messing around with it to get some experience. I have followed a few of Brackeys’s guides and have watched a few tutorials but I am not that experienced yet.
For the past few days, I have been trying to figure out how to change the color of a material when I click a button in Unity. I keep trying to look onto other forums, look onto tutorials and guides, but none of them seem to help me. I have tried to ask for help from others but I cannot seem to get a straight answer, and I am just told to go watch a seventeen minute video talking about methods in c# or something.
I know this might seem like a small issue, but I only have a few weeks of experience and I literally cannot get a direct answer to what is wrong with my code even from an actual person. If someone could just tell me what I am doing wrong, how I can fix it, and what to think about in the future, that would be awesome. Anyways, here’s my code: public void ColorChanger(string color, Color blue) { Material.SetColor = Color.blue; } Thanks!