Skip to content

FPTask_PlaySound2D.h

File Info

FileName: FPTask_PlaySound2D.h

UFPTask_PlaySound2D

Parent Classes: [ UFlowPilotTask ]

Play 2D Sounds

Properties

// Sound Cue to Play
UPROPERTY(EditAnywhere, Category="FlowPilot")
TObjectPtr<USoundCue> SoundToPlay;
// Sound Wave to Play
UPROPERTY(EditAnywhere, Category="FlowPilot")
TObjectPtr<USoundWave> SoundWaveToPlay;
// if true, will play as UI sound
UPROPERTY(EditAnywhere, Category="FlowPilot")
uint8 bIsUISound : 1;
// Volume Multiplier
UPROPERTY(EditAnywhere, Category="FlowPilot", AdvancedDisplay)
float VolumeMultiplier = 1.0f;
// Pitch Multiplier
UPROPERTY(EditAnywhere, Category="FlowPilot", AdvancedDisplay)
float PitchMultiplier = 1.0f;
// Play Start Time
UPROPERTY(EditAnywhere, Category="FlowPilot", AdvancedDisplay)
float StartTime = 0.0f;
// Sound Concurrency Settings
UPROPERTY(EditAnywhere, Category="FlowPilot", AdvancedDisplay)
USoundConcurrency* ConcurrencySettings = nullptr;
// if True, sound will persist across level changes
UPROPERTY(EditAnywhere, Category="FlowPilot", AdvancedDisplay)
bool bPersistAcrossLevels = false;
// if true, sound actor will auto destroy once finished playing
UPROPERTY(EditAnywhere, Category="FlowPilot", AdvancedDisplay)
bool bAutoDestroy = true;