Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Description
Sets the max number of voices (also known as "channels") dynamically by percentage. E.g. if you want to temporarily reduce voice count by 50%, use 0.50. Later, you can return to the original max voice count by using 1.0.
| Name | SetMaxAudioChannelsScaled |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Category="Audio", Meta=(WorldContext="WorldContextObject"))
static void SetMaxAudioChannelsScaled
(
const UObject * WorldContextObject,
float MaxChannelCountScale
)
Parameters
| Name | Remarks |
|---|---|
| MaxChannelCountScale | The percentage of the original voice count to set the max number of voices to |