OnMouseDown GUI function problem

Hi all,

What I want to do is click on a 3D object(a person) using the OnMouseDown function and call that to show some GUI.Button’s(to create a conversation dialog). Everytime I try it gives me loads of errors. I’m very new to Unity and this may be easy so I’ll thank any1 in advance if you can solve my problem.

Thanks

Please give some more information, or post the errors you are getting.

Do you have the OnMouseDown function in the Update() method? It should not be in OnGUI().