I know how to use renderer.material, but the problem is when i do renderer.material.color=Color.orange or light blue it doesn’t work. I’m making a green lantern game and i have text under each color lantern core, but i can’t get orange or indigo because it won’t let me have those colors in the renderer.material.
Please read the documentation for Color. You will find that it only has limited support for “named” colors.
You can however use this code:
renderer.material.color = new Color(1.0f, 0.5f, 0.0f); // orange
or this:
renderer.material.color = new Color32(255, 128, 0); // orange
You may also find HexConverter
useful.