文档

Unity Engine

Unity Engine

selectedCollider

The specific Collider2D attached to this Rigidbody2D to be used to detect contacts.
阅读时间1 分钟最后更新于 25 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public Collider2D selectedCollider { readonly get; set; }

Remarks

Can be used to select a specific Collider2D attached to this Rigidbody2D to be used to detect contacts. If this is selected then Rigidbody2D.SlideMovement.useAttachedTriggers is ignored.