int ActiveParticlesTotal { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The ActiveParticlesTotal property provides the total count of active particles in the SceneParticles system, including those from any child systems. This property is useful for monitoring the overall particle activity within a scene, especially when dealing with complex particle systems that may have multiple layers or child systems.

Usage

To access the ActiveParticlesTotal property, you need to have an instance of the SceneParticles class. This property is read-only and returns an integer representing the total number of active particles.

Example

// Example of accessing the ActiveParticlesTotal property
SceneParticles particleSystem = new SceneParticles();
int totalActiveParticles = particleSystem.ActiveParticlesTotal;

// Output the total number of active particles
// Note: Replace with appropriate logging or UI update code
// e.g., Debug.Log(totalActiveParticles);