Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2021.1.X

Votes

0

Found in

2019.4

2020.2

2020.2.1f1

2021.1

2021.2

Issue ID

1310746

Regression

Yes

Duplicate Collider 2D when editing Colliders in GameObject that has 2 Collider 2D Components

Physics2D

-

How to reproduce:
1. Open a new project
2. Create an empty GameObject
3. Add 2x Capsule Collider 2D to that GameObject
4. Change one of the Collider's Direction to Horizontal
5. Click Edit Collider in the Inspector of Horizontal Collider 2D Component

Expected result: One Collider 2D is rotated vertically and the other is rotated horizontally
Actual result: One of 2 Colliders becomes a cross. It seems as if there are 3 total Colliders in the scene.

Reproducible with: 2019.4.19f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3
Not reproducible with: 2018.4.31f1

  1. Resolution Note (fix version 2021.2):

    CapsuleCollider2D editor was using the first CapsuleCollider2D target only for rotation resulting in the wrong gizmos being drawn.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.