기술 자료

Unity Engine

Unity Engine

pathCount

The number of paths in the Collider.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public int pathCount { get; }

Remarks

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.
Additional Resources: CompositeCollider2D.GetPath