- Home /
Drawing 2D Polygons By Hand
There is an option in the Polygon Collider 2D called "Edit Collider" for editing a polygon created from a sprite. This feature is apparently broken, since I can remove but not add vertices. There is evidence that is has been broken for years. I would like to know if anyone has found a workaround, or perhaps written something that can be used as an alternative. My end goal is to be able to create terrain in my physics-based game by drawing polygons by hand. I already found a way to theoretically render the polygons using a meshrenderer, so if I can create those polygons from scratch I'm all set.
Answer by Oribow · May 08, 2016 at 12:23 AM
You can add new vertices. Just hover around a line segment (when the square marker is on the line) and then drag the marker. A new vertice will be inserted and moved according to your drag.
Thanks for the tip! I was actually experimenting earlier today and found that it works specifically if you are zoomed in far enough for the line segment to take up a certain amount of the screen. It's quite annoying but it works.