colliderComponent
The Collider or Collider2D for the GameObject struck by the particles.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.ParticleSystemModule
public Component colliderComponent { get; }
Remarks
Cast the return value and test for null, if you expect both Collider and Collider2D components to be returned.