Skip to content

ParticleEmitterComponent.CaptureDefaultState() Method

Definition

Namespace: Brine2D.Systems.Rendering

Captures the current configuration as the default state that ResetToDefaultState() will restore. Call this once you have finished configuring the emitter. IsPaused is intentionally excluded — reset always resumes the emitter.

ColorGradient and ParticleFrames arrays are deep-copied so subsequent in-place mutations of those arrays do not silently corrupt the captured state. Reassigning the property to a new array is always safe regardless.

C#
public void CaptureDefaultState();