collider2D
The Collider2D component attached to this object.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Component collider2D { get; }
Remarks
This returns null if no Collider2D is attached.
Additional Resources: Collider2D class.