Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAudioComponent
Description
Adds the given set of Modulators to the modulators currently set on the Audio Component. This performs a logical Union, so duplicate modulators will not be added. This function automatically sets the destination's routing method to Union, overriding whatever was set before. To completely overwrite existing Modulation settings, use SetModulationRouting.
| Name | AddModulationRouting |
| 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="Add Modulation Routing")
void AddModulationRouting
(
const TSet< USoundModulatorBase * > & Modulators,
const EModulationDestination Destination
)
Parameters
| Name | Remarks |
|---|---|
| Modulators | The set of modulators to add to the given destination on the component. |
| Destination | The destination to add the modulators to. |
| bShouldModulationRoutingBeUpdated | Whether we should get the ActiveSound to update the modulator on its next update call |