UAudioComponent::GetInstanceParameters
#include "Components/AudioComponent.h"
Access: public
Specifiers: override
Description
Returns a mutable reference to this component's transient instance parameter array, implementing the ISoundParameterControllerInterface accessor used by the parameter-setting functions such as SetFloatParameter and SetIntParameter.
Caveats & Gotchas
- • Returns InstanceParameters directly by reference — mutating the returned array bypasses the normal SetXParameter path and won't forward changes to an already-playing sound.
- • Instance parameters are Transient and not serialized, unlike DefaultParameters; they reset whenever the component is reconstructed.
Signature
TArray<FAudioParameter>& GetInstanceParameters() override Return Type
TArray<FAudioParameter>& Example
Adding an instance parameter directly C++
TArray<FAudioParameter>& Params = AudioComponent->GetInstanceParameters();
Params.Add(FAudioParameter(TEXT("Intensity"), 0.75f)); Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?