- Home /
PolygonCollider2D Combining Paths
I am looking for a way to get the array of points that combines all paths.
This image shows the scene view of the collider with 2 paths (square within square). As you can see the shapes are automatically calculated by Unity, but there is no way to get the combined points array.
I have tried using PolygonCollider2D.points, but that only returns the points of the first path. I've also tried adding points from each path to a big array, but the shapes are not the same. (Shown by this image).
Your answer
Follow this Question
Related Questions
Slope polygon collider 2D causing box collider 2D to 'bump' while sliding on it. 1 Answer
Can't delete random vertices from a PolygonCollider 1 Answer
How Does Unitys PolygonCollider2D calculates its center ?? 1 Answer
Why can I not directly set the points of PolygonCollider2D? 0 Answers
OnTriggerEnter2D Doesn't fire after switching to IsTrigger on 2 Answers