The ActiveParticlesSelf
property provides the current count of active particles within the SceneParticles
instance itself. This count does not include particles from any child systems that may be associated with this instance.
The ActiveParticlesSelf
property provides the current count of active particles within the SceneParticles
instance itself. This count does not include particles from any child systems that may be associated with this instance.
Use the ActiveParticlesSelf
property to monitor or debug the number of particles currently active in a specific SceneParticles
instance. This can be useful for performance tuning or ensuring that the particle system is behaving as expected.
// Example of accessing the ActiveParticlesSelf property SceneParticles particleSystem = new SceneParticles(); int activeParticles = particleSystem.ActiveParticlesSelf; // Output the number of active particles // Note: Replace with appropriate logging or UI update // Debug.Log($"Active Particles: {activeParticles}");