How do I remove a point from an EdgeCollider2D in the editor?

I sometimes find an unwanted point in my edgecollider2ds but can’t figure out how to remove it. I tried holding down ctrl, command, option etc but I can’t find anything that works.

I can obvious change the number of points and redo from there, but it’s pretty annoying when it’s one of the first points.

I’m on a Mac, Unity 2019.4.16f1

This is very irritating.

Sometimes you have to leave and re-enter collider edit mode. There’s definitely something fiddly with it.

I always have to just rediscover it. For me right now it works with EITHER Ctrl, Command, or Ctrl-Command left-click on a Mac, but I swear it behaves differently every time I try to use it, which is pretty rarely.

Good luck.

Sounds about right. Cheers.

You delete points using ctrl or cmd and left mouse, as @Kurt-Dekker pointed out. The counter-intuitive reason this is difficult to figure out is that you need to hover over the line, not the vertex.

Here’s a diagram to show what I mean.

To delete the topmost point, you can’t hover over the vertex:
6937246--815074--2021-03-15_10-24-22.png

You need to hover over the line wound clockwise next to it. This will highlight the lines connected to the vertex that will be deleted when you click:
6937246--815083--2021-03-15_10-25-19.png6937246--815092--2021-03-15_10-29-24.png

This is not obvious behavior, and I’m not sure why Unity decided to implement it this way.

8 Likes