UAudioComponent::VolumeModulationMax
#include "Components/AudioComponent.h"
Access: public
Specifiers: UPROPERTYEditAnywhereBlueprintReadWrite
Description
The upper bound used when randomly determining a volume multiplier each time the sound plays. Works together with VolumeModulationMin to produce per-playback volume variation.
Caveats & Gotchas
- • If set lower than VolumeModulationMin, the effective random range is undefined — keep Max >= Min.
- • The random multiplier is picked once per Play() call, not continuously re-rolled while the sound is active.
- • Combines multiplicatively with VolumeMultiplier, so values well above 1.0 can push the sound past 0dB and cause clipping downstream.
Signature
float VolumeModulationMax; Example
Randomize volume per play C++
AudioComponent->VolumeModulationMin = 0.8f;
AudioComponent->VolumeModulationMax = 1.2f;
AudioComponent->Play(); Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?