Simple problem with 3D Text code

Hi! I’m with a problem in this code below. This is a 3D Text code. And nothings happen when I clicked.
I don’t know because I did a test with the update function and worls well.

function OnMouseOver()
{
** renderer.material.color = Color.blue;**
}
function OnMouseExit()
{
** renderer.material.color = Color.white;**
}
function OnMouseUp()
{
** Application.LoadLevel(1);**
}

Hi, welcome to the forum!

The OnMouseXXX functions only work with a 3D text object if it has a collider (they work with GUIText objects, but they are not the same thing). Add a mesh or box collider to the object and the functions should get called in response to the mouse.

Thanks andeeee, actually this can fix the problem. I seach a reason for it but I didn’t found.