Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

I can't put multiple Box Colliders in 2D

Discussion in '2019.3 Beta' started by roan05112008, Nov 19, 2019.

  1. roan05112008

    roan05112008

    Joined:
    Sep 5, 2019
    Posts:
    17
    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!
     
  2. MelvMay

    MelvMay

    Unity Technologies

    Joined:
    May 24, 2013
    Posts:
    10,507
    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.
     
    Last edited: Nov 20, 2019
  3. CrimsonLace

    CrimsonLace

    Joined:
    Sep 7, 2019
    Posts:
    8
    I am sorry this response is a necropost but most posts on the Unity forum are ancient anyway. :) 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.
     

    Attached Files:

    dylanfrosty and Daveheart like this.
  4. Daveheart

    Daveheart

    Joined:
    Mar 31, 2023
    Posts:
    5
    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.
     
    rubendariohh and Tamayo114 like this.