メインコンテンツまでスキップ

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.

フィールド

フィールド型デフォルト説明
layerAudioLayerMASTERThe audio layer to control (MASTER affects all layers)値:MASTERMUSICAMBIENTSFXVOICE
volumeVar<Float>1.0The target volume (0.0 = silent, 1.0 = full)
fadeDurationDurationZERODuration to fade to the target volume (instant if zero)
TypeWriter 共通フィールド(criteria, modifiers, triggers)
フィールド型デフォルト説明
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.