PolygonCollider2D.pathCount

public int pathCount;

Description

The number of paths in the polygon.

A path is cyclic sequence of line segments between points that define the outline of the polygon. Because the polygon can have holes and discontinuous parts, its shape is not necessarily defined by a single path.

Additional resources: GetPath, SetPath.


Did you find this page useful? Please give it a rating: