selectedCollider
The specific Collider2D attached to this Rigidbody2D to be used to detect contacts.
阅读时间1 分钟最后更新于 1 个月前
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.
Additional Resources: Rigidbody2D.Slide and Rigidbody2D.SlideResults.