How can I make a 3d model (say a cube) click-able? Actually, I want the user to rotate my 3d model and click on different parts to get different responses. I think that GUI won’t work here.
Hi
You can use his part of code here
function OnMouseDown ()
{
check the orientation of the cube to apply what ever you want specific to the side of the cube facing to the camera.
}
This function is always called when you click onto an object that has this script attached and also a collider (this is very important)
I hope this will answer your question.
By
Thanx Mike3D, you are on the mark.
Here is the documentation ref as well Unity - Scripting API: MonoBehaviour.OnMouseDown()