UAudioComponent::SetVolumeMultiplier
#include "Components/AudioComponent.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Sets the component's VolumeMultiplier property, applied instantly with no interpolation. This is the base multiplier that all other volume adjustments and attenuation stack on top of.
Caveats & Gotchas
- • Unlike AdjustVolume(), this snaps the volume immediately — use AdjustVolume() if you want a smooth transition.
- • The final audible volume is the product of this multiplier, distance attenuation, sound class volume, and any active fade — setting this to 1.0 does not guarantee full volume.
- • Calling this on a component that hasn't started playing simply updates the property for the next Play() call.
Signature
void SetVolumeMultiplier(float NewVolumeMultiplier) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| NewVolumeMultiplier | float | The new volume multiplier value to apply immediately. | — |
Return Type
void Example
Instantly halve volume C++
AudioComponent->SetVolumeMultiplier(0.5f); Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?