Hello,
This OnMouseDown event is driving me crazy. :x
I have a gui texture in my scene and I’ve just attached this piece of code to it:
function OnMouseDown(){
btnAction();
}
private function btnAction(){
Debug.Log("clic !");
}
According to the documentation, OnMouseDown is captured by colliders and GUIelements. As far as I know, the GUItexture is a GUIelement and so this code should work… But it doesn’t! :?
Thank you for your help