collider2D
The Collider2D component attached to the object.
阅读时间1 分钟最后更新于 1 个月前
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.