set_master_volume
Set the master or layer volume for a player — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | set_master_volume |
| Type | Misc |
| Color | Green |
| Icon | fa6-solid:volume-high |
Description
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.
Fields
| Field | Type | Description |
|---|---|---|
layer | AudioLayer | The audio layer to control (MASTER affects all layers) |
volume | Var<Float> | The target volume (0.0 = silent, 1.0 = full) |
fadeDuration | Duration | Duration to fade to the target volume (instant if zero) |
Usage Example
- entry: set_master_volume
name: "Set the master or layer volume for a player"
layer: ""
volume: 0
fadeDuration: ""