I've just started to learn Unity3D.
I want to create a simple 3D menu with just two 3D Text instances. I've created and named them, then dropped this script:
function Awake(){
print("MenuItem "+gameObject.name+" init!");
}
function OnMouseEnter(){
print("OnMouseEnter " + gameObject.name);
}
function OnMouseDown(){
print("OnMouseDown " + gameObject.name);
}
I only see the init/awake message printed in the console.
What am I missing ?
EDIT:
Sorry, I forgot to add the BoxCollider(Physics>Box Collider) to my object, so no events were triggered.
