Legacy Documentation: Version 2017.2 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CompositeCollider2D.pathCount

Switch to Manual
public int pathCount;

Description

The number of paths in the Collider.

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

See Also: GetPath.

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