class ParticleEventsSource
Invokers for ParticleBase events, called from events
void EnableOnEndPrint(ParticleBase psrc)
{
psrc.GetEvents().Event_OnParticleEnd.Insert(PrintParticleEnded);
}
void PrintParticleEnded(ParticleBase psrc)
{
Print(string.Format("%1 ended.", psrc.GetDebugNameNative());
}Members 6
ref ScriptInvoker Event_OnParticleStart = new ScriptInvoker()Called when particle starts playing
NoteParticle: Called when any Play method has been called
NoteParticleSource: Called when PlayParticleNative is successful
Referenced by EffectParticle.SetParticle()
ref ScriptInvoker Event_OnParticleStop = new ScriptInvoker()Called when particle stops playing
NoteParticle: Called when any Stop method has been called or when lifetime is over
NoteParticleSource: Called when StopParticleNative is successful, when the particle ends and when the particle is destroyed while it is playing
Referenced by EffectParticle.SetParticle()
ref ScriptInvoker Event_OnParticleReset = new ScriptInvoker()Called when particle is reset
NoteParticle: Not present, there is no reset functionality
NoteParticleSource: Called when ResetParticleNative is successful
ref ScriptInvoker Event_OnParticleEnd = new ScriptInvoker()Called when particle ends
NoteParticle: Called when lifetime is over and there are no emitors active anymore
NoteParticleSource: Called when particle ends naturally or after the particle is stopped and there are no emitors active anymore
WarningLooped never ends naturally and need to be stopped
ref ScriptInvoker Event_OnParticleParented = new ScriptInvoker()Called when particle receives a parent
NoteParticle: Not present
ref ScriptInvoker Event_OnParticleUnParented = new ScriptInvoker()Called when particle is orphaned
NoteParticle: Not present