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