Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


aliveParticleCount

Returns the sum of all alive particles within the visual effect.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.VFX
  • Assembly: UnityEngine.VFXModule
public int aliveParticleCount { get; }

Remarks

If the particle count is only available on the GPU, the actual result can be delayed. This is because the system uses an asynchronous readback to retrieve the result.