文档

Unity Engine

Download Unity

Unity Engine

attachedColliderCount

Returns the number of Collider2D attached to this Rigidbody2D.
阅读时间1 分钟最后更新于 2 个月前

Definition

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

Remarks

Additional Resources: Rigidbody2D.GetAttachedColliders.