Hi, I’m making a menu for my game, and I use 3D text for each option on the menu. The color I used for my 3D text is brown. I also attach a script for my text. when mouse moves over each option it changes color.
here is the script:
function OnMouseEnter()
{
renderer.material.color = Color.white;
}
function OnMouseExit()
{
renderer.material.color = Color.black;
}
Well, the code works, my problem is that brown isn’t one of predefined colors. For example if the mouse goes on the text it changes color to orange, and when it goes over text color become the same as before, and becomes brown. Is it possible to do that?
And by the way I forgot to tell that I’m a newbie to unity and also coding.