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.


Did you find this page useful? Please give it a rating: