Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ParticleSystem.ColliderData.GetCollider

Switch to Manual

Declaration

public Component GetCollider(int particleIndex, int colliderIndex);

Parameters

particleIndex The index of the particle event.
colliderIndex The index of the collider to obtain.

Returns

Component The Collider or Collider2D Component that a particle is interacting with.

Description

Retrieve a specific Collider that a particle iss interacting with.