| ParticleSystemAddParticles Method (Int32, Object) |
Creates a number of new particles from the specified emitter.
Namespace: DigitalRune.ParticlesAssembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public int AddParticles(
int numberOfNewParticles,
Object emitter
)
Public Function AddParticles (
numberOfNewParticles As Integer,
emitter As Object
) As Integer
public:
int AddParticles(
int numberOfNewParticles,
Object^ emitter
)
member AddParticles :
numberOfNewParticles : int *
emitter : Object -> int
Parameters
- numberOfNewParticles
- Type: SystemInt32
The number of particles to create. - emitter
- Type: SystemObject
Optional: The emitter that triggered the particle creation. This can be an effector, another
object, or .
Return Value
Type:
Int32
The number of actually created particles. This number will be less than
numberOfNewParticles if the total number of particles in the particle
system would exceed
MaxNumberOfParticles.
Remarks See Also