class Particle.BaseListener

in global :: Sandbox

Allows creating a class that will exist for as long as a particle. The methods get called in the particle thread, which removes the need to run through the particle list again, but it has the danger and restrictions that come with threaded code.


public Component Source { get; }

The component that created this listener. May be null.

public void OnEnabled( Particle p )

Called in a thread. The particle is in its first position.

public void OnUpdate( Particle p, float dt )

Called in a thread, guarenteed to be called after OnEnabled

public void OnDisabled( Particle p )

Called in a thread. OnUpdate won't be called again.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.