Navigation
Unreal Engine C++ API Reference > 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, BlueprintCosmetic, Category="Audio",
Meta=(WorldContext="WorldContextObject", AdvancedDisplay="2", UnsafeDuringActorConstruction="true"))
static void PlaySound2D
(
const UObject * WorldContextObject,
USoundBase * Sound,
float VolumeMultiplier,
float PitchMultiplier,
float StartTime,
USoundConcurrency * ConcurrencySettings,
const AActor * OwningActor,
bool bIsUISound
)
Remarks
Plays a sound directly with no attenuation, perfect for UI sounds.
- Fire and Forget.
- Not Replicated.