Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAudioComponent
Description
Sets the routing for one of the given Audio component's Modulation Destinations. This will overwrite the current settings. To Add modulators without removing previously set ones, use AddModulators.
| Name | SetModulationRouting |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/AudioComponent.h |
| Include Path | #include "Components/AudioComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/AudioComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Audio|Components|Audio",
DisplayName="Set Modulation Routing")
void SetModulationRouting
(
const TSet< USoundModulatorBase * > & Modulators,
const EModulationDestination Destination,
const EModulationRouting RoutingMethod
)
Parameters
| Name | Remarks |
|---|---|
| Modulators | The set of modulators to apply to the given destination on the component. |
| Destination | The destination to assign the modulators to. |
| RoutingMethod | The routing method to use for the given modulator. |