Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UGameplayStatics
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include | #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
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| MaxChannelCountScale | The percentage of the original voice count to set the max number of voices to |