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

Script language

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

CompositeCollider2D.GetPathPointCount

Switch to Manual
public int GetPathPointCount(int index);

Parameters

index The index of the path from 0 to pathCount.

Returns

int Returns the number of points in the path specified by index.

Description

Gets the number of points in the specified path from the Collider by its index.

See Also: GetPath & pathCount.

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