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.