Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Emit(count: int): void;
void Emit(int count);
def Emit(count as int) as void

Description

Emit count particles immediately.

Emit(position: Vector3, velocity: Vector3, size: float, lifetime: float, color: Color32): void;
void Emit(Vector3 position, Vector3 velocity, float size, float lifetime, Color32 color);
def Emit(position as Vector3, velocity as Vector3, size as float, lifetime as float, color as Color32) as void

Parameters

positionThe position of the particle.
velocityThe velocity of the particle.
sizeThe size of the particle.
lifetimeThe remaining lifetime of the particle.
colorThe color of the particle.

Description

Emit a single particle with given parameters.

Emit(particle: Particle): void;
void Emit(Particle particle);
def Emit(particle as Particle) as void

Description

Emit a single particle.