Search Issue Tracker

By Design

Votes

0

Found in

2019.4.8f1

2020.1.1f1

2020.2.0a12

2020.2.1f1

2021.1

2021.2

Issue ID

1308835

Regression

No

Collider vertices do not get removed when holding CMD/CTRL and clicking them in Edit Collider mode

Physics2D

-

How to reproduce:
1. Open the attached project
2. Select the GameObject in the scene
3. Click the Edit Collider button
4. Hold down CTRL/CMD
5. Click on a vertex

Expected result: The vertex you clicked on is removed
Actual result: The vertex does not get removed

Reproducible with: 2019.4.8f1, 2019.4.18f1, 2020.1.1f1, 2020.1.17f1, 2020.2.0a12, 2020.2.3f1, 2021.1.0b2, 2021.2.0a3
Not reproducible with: 2018.4.30f1, 2019.4.7f1, 2020.1.0a1, 2020.1.0b16, 2020.2.0a1, 2020.2.0a11

Workaround: CTRL/CMD click on one of the lines that are connected to the vertex

  1. Resolution Note:

    This change by the tooling team was intentional. Both the EdgeCollider2D & PolygonCollider2D now use the same tooling and now support multiple Edge/Polygon to be edited at the same time. Both allow you to create a new vertex by clicking near an edge and moving that vertex by selecting/moving. Deleting a vertex was an issue for many devs because the need to be near a small handle whereas hovering near an edge is much easier. Now you simply have to hover near an edge whilst pressing CMD/CTRL (as stated as a workaround) but this is how it is now done. This produces the same result and obviously deletes the vertex between them. All that has really changed therefore is that you can hover near an edge as opposed to a small vertex handle.

    The instructions for editing need updating however and I am getting that done:
    https://docs.unity3d.com/Manual/class-EdgeCollider2D.html
    https://docs.unity3d.com/Manual/class-PolygonCollider2D.html

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.