UAudioComponent::ResetParameters
#include "Components/AudioComponent.h"
Access: public
Specifiers: virtualoverride
Description
Clears this component's instance parameters (the ones set at runtime via SetFloatParameter, SetBoolParameter, etc.), reverting the sound to the parameter values defined by DefaultParameters and the sound asset itself.
Caveats & Gotchas
- • Only clears InstanceParameters — it does not touch DefaultParameters, so values you configured on the component in the editor are unaffected.
- • This is an ISoundParameterControllerInterface override with no UFUNCTION macro, so it's C++-only; there's no direct Blueprint node.
- • If the component is currently playing, cleared parameters don't retroactively unset values already sent to the active sound instance — call it before Play() for a clean parameter state.
Signature
virtual void ResetParameters() override Return Type
void Example
Clear instance parameters before reusing a component C++
AudioComponent->Stop();
AudioComponent->ResetParameters();
AudioComponent->SetSound(NewSound);
AudioComponent->Play(); Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?