0
\$\begingroup\$

Some of my GameObjects have 2 Sprites nested under them, like how Cat and Snake are nested under Sprites:

enter image description here

The "Cat + Snake" parent GameObject has a Composite Collider 2D and a RigidBody 2D on it (the only other Component is a State Machine with my graphs in it).

enter image description here

Here's the settings for the Cat grandchild (the Snake is identical).

enter image description here

It used to be that if I went into Scene view and clicked on the Cat + Snake in the Hierarchy... I would see the Composite Collider over the Cat and Snake (it looked like a rectangle). Then I could play with the Offset Distance setting, and the rectangle would become a RoundRect.

But I must've tweaked something somehow, and I can no longer see the Composite Collider! But the colliders to seem to be working, as I'm able to click on the Cat, the Snake and the Words.

I'm thinking I must've done something to make the Colliders not appear in Game View, or somehow downgraded them in some respect... any idea what it might have been?

\$\endgroup\$
3
  • \$\begingroup\$ Is the Button Gizmos in the editor (not on a component) maybe toggled off? \$\endgroup\$
    – Zibelas
    Commented Jun 4, 2022 at 13:03
  • \$\begingroup\$ The gizmos were not toggled off... but just in case I tried toggling off and then on again, and then restarting. \$\endgroup\$
    – kanamekun
    Commented Jun 7, 2022 at 6:54
  • \$\begingroup\$ I couldn't figure this out, so I am going to try another approach instead of using Composite Collider here. Feel free to close this question if appropriate - thank you! \$\endgroup\$
    – kanamekun
    Commented Jun 7, 2022 at 6:55

1 Answer 1

1
\$\begingroup\$

Myself, I was able to fix this by navigating to the child colliders, unticking the "used by composite" box, then ticking it again and navigating back to the parent. After repeating that for each child, their combined composite collider gizmos showed up when selecting the parent.

\$\endgroup\$
1
  • \$\begingroup\$ Just tried this but no luck, alas! \$\endgroup\$
    – kanamekun
    Commented Jun 5, 2022 at 2:21

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .