Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


colliderComponent

The Collider or Collider2D for the GameObject struck by the particles.
Read time 1 minuteLast updated 6 days ago

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.