void Emit( int count )

book_4_sparkGenerated
code_blocksInput

Description

The Emit method is used to emit a specified number of particles from the SceneParticles object. This method is useful for manually controlling the emission of particles in a scene, allowing for dynamic and interactive particle effects.

Usage

To use the Emit method, you need to have an instance of the SceneParticles class. Call the Emit method on this instance, passing the desired number of particles to emit as an integer parameter.

Example

// Create an instance of SceneParticles
SceneParticles particles = new SceneParticles();

// Emit 100 particles
particles.Emit(100);