Hello All,
I want to create a shape and give name to that shape using gl class in unity3d and when mouse/finger is down on that object then it print its name
Hello All,
I want to create a shape and give name to that shape using gl class in unity3d and when mouse/finger is down on that object then it print its name
For mouse down it’s super simple: use the MonoBehaviour.OnMouseDown handler. I’m 90% sure it works for finger too. Oh, and printing the gameObject name is what makes most sense.