- Home /
How to Detect a gameObject when Clicked near it?
I am working on Angry bird type game.I need the ball to be detected when the user clicks near the ball but i couldn't. I have tried
function but it detects only when it is on the gameobject.OnMouseDown()
               Comment
              
 
               
              Answer by Haileapp · Mar 13, 2018 at 01:58 PM
The best Answer I got is to use
Input.GetTouch
If anyone faces similar problem like me click examples from the documentation https://docs.unity3d.com/ScriptReference/Input.GetTouch.html
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                