Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UAudioComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/AudioComponent.h |
| Include | #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
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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 |