기술 자료

Unity Engine

Unity Engine

contactCount

Gets the number of contacts for this collision.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

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

Remarks

A collision can involve multiple contact points. This property allows you to determine how many are involved. You can use this value when retrieving contacts using Collision2D.GetContact or Collision2D.GetContacts.