- Home /
Question by
dofe · Dec 04, 2012 at 02:56 AM ·
triggermenuvisibility
menu Visibility trigger ???
I am making a Menu in 3D. I am using Planes with Textures to construct it. I am having 3D text. This is what my code Looks like for it. var isQuit=false;
function OnMouseEnter(){ renderer.material.color=Color.blue; }
function OnMouseExit(){ renderer.material.color=Color.white; }
function OnMouseUp(){ if (isQuit==true) { Application.Quit(); } else {
Application.LoadLevel(2);
}
} However, I do have a Plane behind the text that I want to make invisible when the mouse is not over it. The only time i want the Plane to be visible is when the Mouse is over it.
eX:When I hover over Start the text will change color, and the Plane that is behind it will become visible.
How can i write such Code>>???
Comment
Your answer