Class Particle
- Namespace
- BasilEngine.Components
- Assembly
- BasilEngine.dll
[NativeHeader("Bindings/ManagedParticle.hpp")]
public class Particle : Component
- Inheritance
-
Particle
- Inherited Members
Properties
acceleration
Constant acceleration applied to particles.
public Vector3 acceleration { get; set; }
Property Value
activeCount
Number of currently active particles.
public int activeCount { get; }
Property Value
autoPlay
Automatically starts playback when the component is enabled.
public bool autoPlay { get; set; }
Property Value
blend
Blending mode used when rendering particles.
public Particle.BlendMode blend { get; set; }
Property Value
depthWrite
Whether particles write to the depth buffer.
public bool depthWrite { get; set; }
Property Value
duration
Duration in seconds before the system stops emitting.
public float duration { get; set; }
Property Value
emissionRate
Number of particles emitted per second.
public float emissionRate { get; set; }
Property Value
emissionType
Shape from which particles are emitted.
public Particle.EmissionType emissionType { get; set; }
Property Value
emitterSize
Size of the emitter when using box emission.
public Vector3 emitterSize { get; set; }
Property Value
endColor
Color particles transition to over their lifetime.
public Vector4 endColor { get; set; }
Property Value
endSize
Final particle size at the end of its lifetime.
public float endSize { get; set; }
Property Value
isAlive
Indicates whether any particles are alive.
public bool isAlive { get; }
Property Value
isPlaying
Indicates whether the system is currently emitting.
public bool isPlaying { get; }
Property Value
looping
Whether the system restarts automatically after finishing.
public bool looping { get; set; }
Property Value
maxLifetime
Maximum lifetime of spawned particles.
public float maxLifetime { get; set; }
Property Value
maxParticles
Maximum number of particles alive at once.
public int maxParticles { get; set; }
Property Value
minLifetime
Minimum lifetime of spawned particles.
public float minLifetime { get; set; }
Property Value
renderLayer
Render layer mask applied to particles.
public uint renderLayer { get; set; }
Property Value
rotationSpeed
Rotation speed applied over the particle's lifetime.
public float rotationSpeed { get; set; }
Property Value
sphereRadius
Radius when using spherical emission.
public float sphereRadius { get; set; }
Property Value
startColor
Initial color of spawned particles.
public Vector4 startColor { get; set; }
Property Value
startRotation
Initial rotation of spawned particles in degrees.
public float startRotation { get; set; }
Property Value
startSize
Initial particle size.
public float startSize { get; set; }
Property Value
startVelocity
Initial velocity assigned to new particles.
public Vector3 startVelocity { get; set; }
Property Value
velocityRandomness
Randomness applied to the starting velocity magnitude.
public float velocityRandomness { get; set; }
Property Value
Methods
Play()
Starts the particle simulation.
public void Play()
Reset()
Stops and clears all particles.
public void Reset()
Stop()
Stops emission but keeps existing particles alive.
public void Stop()