- Home /
OnMouseDown without collider?
Hello friends! I'm trying to select my shooting tower by OnMouseDown function. It works fine. But I have a sphere collider of that tower much more than itself because I am using a OnTriggerEnter function to detect whether enemies have entered my circle to start fire. So OnMouseDown function doesn't work the way I want.
Is there any way to solve that? Or is there any function that I can use to select my tower without using a Collider?
Thanks in advance!
Answer by Filosof · Sep 20, 2016 at 01:59 PM
Solve that with Physics.OverlapSphere function attached to a tower and working withing FixedUpdate.
Your answer
Follow this Question
Related Questions
How to make the selected object destroyed with another selected object 0 Answers
Why Is the game object not selected? I'd like to understand why. 2 Answers
OnMouseDown with 360 controller unity? 1 Answer
GameObject Array 1 Answer
Increase mouseclick area size for OnMouseDown() - For Mouse Shooting Game (Open to more ideas) 2 Answers