Main Menu Help

Ive been following the tornado twins main menu tutorial which have given me this script but it dosent work, can anyone help?

function OnMouseEnter()

{

//change the color of the text

renderer.material.color = Color.green;

}

function OnMouseExit()

{

//change the color of the text

renderer.material.color = Color.white;

}

Did you add it to the gameobject?

The script looks good, but it sounds like you are missing a collider on the object. Try adding a collider to the text:

Component → Physics → Box Collider

And it should work.