Class SKConfettiEmitter
Controls the rate and duration of particle emission for a confetti system.
public class SKConfettiEmitter : BindableObject, INotifyPropertyChanged
- Inheritance
-
SKConfettiEmitter
- Implements
- Inherited Members
Constructors
- SKConfettiEmitter()
Initializes a new instance of the SKConfettiEmitter class.
- SKConfettiEmitter(int, int, double)
Initializes a new instance of the SKConfettiEmitter class with the specified settings.
Fields
- DurationProperty
Identifies the Duration bindable property.
- IsCompleteProperty
Identifies the IsComplete bindable property.
- MaxParticlesProperty
Identifies the MaxParticles bindable property.
- ParticleRateProperty
Identifies the ParticleRate bindable property.
Properties
- Duration
Gets or sets the emission duration in seconds. Use 0 for burst mode or -1 for infinite.
- IsComplete
Gets a value indicating whether the emitter has completed emitting particles.
- MaxParticles
Gets or sets the maximum total number of particles. Use -1 for unlimited.
- ParticleRate
Gets or sets the number of particles emitted per second.
Methods
- Burst(int)
Creates a burst emitter that emits all particles at once.
- Infinite(int)
Creates an infinite emitter with no particle limit.
- Infinite(int, int)
Creates an infinite emitter with a maximum particle limit.
- Stream(int, double)
Creates a stream emitter that emits particles over a specified duration.
- Update(TimeSpan)
Updates the emitter state for the given elapsed time.
Events
- ParticlesCreated
Occurs when new particles have been created.