Class MusicDuckSettings
- Namespace
- SurvivorsMaker.Presentation
- Assembly
- SurvivorsMaker.Presentation.dll
Music ducking while a cue marked DuckMusic plays. Works on the AudioSource volume; no mixer needed.
public sealed class MusicDuckSettings
- Inheritance
-
MusicDuckSettings
- Inherited Members
Constructors
MusicDuckSettings()
public MusicDuckSettings()
Fields
Attack
Seconds to fall from full to silent (ducking moves proportionally).
[Min(0)]
public float Attack
Field Value
Enabled
public bool Enabled
Field Value
HoldScale
The stinger's length is multiplied by this to decide how long the music stays ducked.
[Min(0)]
public float HoldScale
Field Value
Level
Music gain while ducked.
[Range(0, 1)]
public float Level
Field Value
Release
Seconds to recover from silent to full after the stinger ends.
[Min(0)]
public float Release