- Home /
Hard to select certain objects (collider problem??)
Hi,
I have a problem with certain objects (Rock and keyAtRock), when I select those in game mode; it often doesn't got registrated. Their isn't a problem with the script; because after a lot of clicking, it works (= animates) :s In other words; its really hard to select those objects. I sometimes have to click 10 times or even more to get the animation work.
There is one certain place that detects the click pretty fast (green arrow on the screenshot below), once the rock is clicked succesful; its easier to select him and also the other points (red arrows) are easier to select once the rock is clicked.
The strange thing is that the 'hard to click-objects' (rock + KeyAtRock) are in the same group/parent as the 'keyatlock' and the chest; which always are fast clickable without problems. Note: the colliders on the hard to click objects are well measured.
I searched for houres to solve this problem but I just can't see it. Does somebody know the solution? I would be very grateful for that!
Thanks!
Answer by Neovo91 · Jun 29, 2012 at 10:40 PM
Ok... Wasn't very clever of me.. I found out the problem!
There was a box collider in my scene that overlap my game objects (rock + keyatrock) which made it impossible to select at those places.
I moved the collider away so the problem was solved. Case closed! :-D
Answer by jtok4j · Oct 27, 2014 at 05:28 AM
So Hilarious... I laughed when I searched for this same issue, and your post came up...
Then realized I had done the SAME thing!
Thank-you! Saved me tons of troubleshooting! :D
Your answer
Follow this Question
Related Questions
Control Object Script 0 Answers
Internal collisions 1 Answer
(C#) Clicking on gameObject to select, clicking off to deselect 3 Answers
Clickable Object Problem - Help 1 Answer
Using a collider to define the boundary of a level? 3 Answers