GetPathPointCount(int)
Gets the number of points in the specified path from the Collider by its index.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.Physics2DModule
public int GetPathPointCount(int index)
Parameters
The index of the path from 0 to CompositeCollider2D.pathCount minus 1.
Returns
Type | Description |
|---|---|
| int | Returns the number of points in the path specified by |
Remarks
Additional Resources: CompositeCollider2D.GetPath & CompositeCollider2D.pathCount.