- Home /
Box collider 2D turn invisible when assigned as child. Why ?
Hello,
I'm trying to make a little 2D game with unity. But I have a problem. I have a Box Collider assigned to a fresh new game object. In the editor, it was visible and I was able to see its size with the green rectangle. I then assigned it as a child of my Enemy game object. And now I can't see the box collider. Is there any way to make it visible? As you may have guessed, I'm very new to all of this.
Thank you !
Answer by Johanny · May 26, 2014 at 05:54 PM
Ok guys, I think I figure all this story out. I did not check the scale of the game object's children. Scales were equal to 0, so that's why I did not see the colliders. I don't know why the scale turns to be 0 when I drag it as child though. But anyway, my question is answered, thanks to a guy at my job !
Your answer
Follow this Question
Related Questions
Add same go as a child to multiple gameObjects in hierarchy 0 Answers
Why gameObj's pos changes when a child is added ? 2 Answers
Get dynamic persistent asset reference 0 Answers
MCF dialogs won't open in unity 0 Answers
Dragging an Object with mouse in 2D 1 Answer