Aller au contenu principal

Set Master Volume

Set the master or layer volume for a player

The Set Master Volume action sets the volume for a specific audio layer or the master volume for a player. Supports smooth fade transitions when fadeDuration > 0.

Champs

ChampTypePar défautDescription
layerAudioLayerMASTERThe audio layer to control (MASTER affects all layers)Valeurs :MASTERMUSICAMBIENTSFXVOICE
volumeVar<Float>1.0The target volume (0.0 = silent, 1.0 = full)
fadeDurationDurationZERODuration to fade to the target volume (instant if zero)
Champs TypeWriter communs (criteria, modifiers, triggers)
ChampTypePar défautDescription
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

Choose the layer (MASTER scales every other layer) and the target volume between 0.0 and 1.0. With a non-zero fadeDuration, the volume moves to the target in 20 steps. The new volume is saved for the player when a Player Audio Volume artifact exists.