UAudioComponent::RemoveModulationRouting
#include "Components/AudioComponent.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Removes the given modulators from the set currently routed to a modulation destination on this component, leaving any other modulators in place.
Caveats & Gotchas
- • Only modulators present in the given set are removed — modulators not included stay routed, so this is a subtraction, not a clear/reset.
- • Removing modulators here does not change the routing method (Union/Inherit/etc.) previously set on the destination.
Signature
void RemoveModulationRouting(const TSet<USoundModulatorBase*>& Modulators, const EModulationDestination Destination) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Modulators | const TSet<USoundModulatorBase*>& | The set of modulators to remove from the given destination. | — |
| Destination | const EModulationDestination | The destination to remove the modulators from. | — |
Return Type
void Example
Removing a modulator C++
TSet<USoundModulatorBase*> ModulatorsToRemove;
ModulatorsToRemove.Add(MyDuckingModulator);
AudioComponent->RemoveModulationRouting(ModulatorsToRemove, EModulationDestination::Volume); Tags
Version History
Introduced in: 5.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?