Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

index

The index of the path from 0 to _pathCount minus 1.

Returns

Type

Description

intReturns the number of points in the path specified by
index
.

Remarks