GUIText

Hello, I am trying to make, when hovering over or clicked it changes colour of the GUIText.

I tryed using

function OnMouseEnter()
{
renderer.material.color = Color.red;
}

function OnMouseExit()
{
renderer.material.color = Color.white
}

Can someone help me please.

If you look at a GUIText in the inspector you see that it has no renderer component. Change the .material in the GUIText component instead.

–Eric