| ParticleEffectorOnInitializeParticles Method |
Namespace: DigitalRune.ParticlesAssembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax protected virtual void OnInitializeParticles(
int startIndex,
int count,
Object emitter
)
Protected Overridable Sub OnInitializeParticles (
startIndex As Integer,
count As Integer,
emitter As Object
)
protected:
virtual void OnInitializeParticles(
int startIndex,
int count,
Object^ emitter
)
abstract OnInitializeParticles :
startIndex : int *
count : int *
emitter : Object -> unit
override OnInitializeParticles :
startIndex : int *
count : int *
emitter : Object -> unit
Parameters
- startIndex
- Type: SystemInt32
The index of the first particle to initialize. - count
- Type: SystemInt32
The number of particles to initialize. - emitter
- Type: SystemObject
The emitter that triggered the particle creation. This can be an effector, another object or
.
Remarks Notes to Inheritors:
When this method is called,
ParticleSystem is already
initialized and the particle effector is
Enabled.
startIndex
plus
count will never exceed the maximal number of particles (= the
length of the particle parameter arrays). This method does not have to make any index
checks. (When
startIndex plus
count would exceed the
length of the particle parameter arrays,
InitializeParticles(Int32, Int32, Object) calls
OnInitializeParticles(Int32, Int32, Object) twice.)
See Also