I can't put multiple Box Colliders in 2D

Hello!

I don’t know why, but I can’t edit multiple Box Colliders on a sprite. Is it because this feature has been removed? Or because this is a bug? Please let me know!

It’s not clear what you mean.

  • You can add any type of collider (2D or 3D) multiple times to the same GameObject.
  • You can multi-select multiple GameObject and drag the property values to change the 2D/3D colliders
  • You cannot multi-select multiple GameObject and use the “Edit Collider” button to change 2D/3D colliders using a single Gizmo. You do however get multiple Gizmos where each allows you to change one of the selected colliders.
  • Multiple colliders on the same GameObject cannot be edited using the “Edit Collider” button at the same time. Only a single “Edit Button” can be selected on the same GameObject. Selecting another button will automatically deselect the other.

I am sorry this response is a necropost but most posts on the Unity forum are ancient anyway. :slight_smile: So I know exactly what the OP is referring to. I’m presently using 2021.3.5f1 and this is still an issue in this version. It’s not just in 2D either, the 3D colliders have the same problem. It’s why I keep all of my older projects version-locked to the 2019.2.21f1 build, which does not have this issue (though it has an issue of missing templates, so I can’t create any new projects in this otherwise working version, which is something that broke during a Unity Hub update, but that’s another ball of wax altogether). Anyway, the problem is that the Edit Bounding Volume button only shows up for one collider no matter what you do. I found a way around it by adjusting the Offset and Size values manually, but this isn’t intuitive to some people. This isn’t an issue of the OP trying to multi-select. You literally only get a single Edit Bounding Volume button. The fact that this post is from 2019 and persists in a 2021 build is quite telling. I’m attaching a screenshot of it. I don’t know if it’s been fixed in later builds or not (I only have so much space on my SSD and so have not yet tried a later build to see if it’s been resolved) but as of the version I’m using, dated about two years after the OP, it’s still present and is clearly a bug.

8952816--1229259--bounding-box-issue.png

2 Likes

Same Issue here.
And literally just now figured it out.

I created a capsule collider and edited it.
Then created a 2nd, but never could see an edit button for it.

Then I realized, when I clicked the Edit button for the first capsule collider (in the inspector), in the Scene view, BOTH capsule colliders were editable.

4 Likes

how did you edit the second one??? its not working for me.

Please don’t necropost or hijack threads. Simply create your own thread in the 2D forum and ask your own question please.

This is an old thread on the 2019.3 beta page!

Thanks.