Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

PolygonCollider2D.pathCount

Switch to Manual
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. Since the polygon can have holes and discontinuous parts, its shape is not necessarily defined by a single path.

See Also: GetPath, SetPath.

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