文档

Unity Engine

Unity Engine

GetPathPointCount(int)

Gets the number of points in the specified path from the Collider by its index.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public int GetPathPointCount(int index)

Parameters

index

The index of the path from 0 to CompositeCollider2D.pathCount minus 1.

Returns

Type

Description

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

Remarks