selectedCollider
The specific Collider2D attached to this Rigidbody2D to be used to detect contacts.
Read time 1 minuteLast updated 13 days ago
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.