AudioSourceComponent.PlayOnEnable Property
Definition¶
Namespace: Brine2D.Systems.Audio
Whether to automatically play when the component becomes enabled.
public bool PlayOnEnable { get; set; }
Property Value¶
Remarks¶
This triggers both when the entity first enters the AudioSystem query with IsEnabled already true and when a previously disabled component is re-enabled. Set IsEnabled to false before attaching the component to defer playback.