unity click on object 3d code example
Example: how to make a 3d object do something when clicked on
using UnityEngine;
using System.Collections;
public class OnMouseDownExample : MonoBehaviour
{
void OnMouseDown()
{
print (name);
}
}