Question by
surajsirohi1008 · Oct 20, 2017 at 04:49 PM ·
2draycastprogramming
How to return gameobject which is touched (on a mobile touchscreen)?
How can I get the tag or collider of the gameobject which is touched, the game is on an android device.
I used raycast2D but it's giving error "reference not set".
Comment
Your answer
Follow this Question
Related Questions
Raycast is hitting enemy even when not in contact with it? 2 Answers
Endless Running in 2D? 0 Answers
CircleCast hit its origin... 0 Answers
Raycast 2d don't work 0 Answers
Computer screen inside of game 1 Answer