- Home /
This post has been wikified, any user with enough reputation can edit it.
Question by
sandhillceltic · Jan 28, 2014 at 09:34 PM ·
javascriptcollisioncolliderjavascript-specificonmouseover
OnMouseOver parenting problem
I am building a game where the player clicks on a node, and an object spawns there. The node is an empty GameObject, with a sphere collider. When I have the node in space, it works fine. The node is clicked, and the gameobject spawns. I went to the next step, and tried parenting several nodes to a parent, to make a building system. It didn't work, so I started troubleshooting. It turns out that OnMouseOver does not work, when the collider to be clicked on is parented to another object. Has anyone else run into this, and is there an easy way to fix it?
Thanks, Thomas
*javascript only please
Comment