- Home /
Clicking on a child object.
In my 2d game, I have a script that when i click on one of my game objects, it writes to the the console log. However when that game object is a child of a different game objects, clicking on it no longer works. I've noticed that this problem only happens when the parent object has a rigidbody2d. Can anyone explain this behavior?
Comment
Answer by malkere · Jul 03, 2015 at 03:08 PM
-anything- in the way will stop a click.
debug the click to see what it's hitting. if it's hitting properly and there is a properly implemented OnClick() it will work.