이번 게시물에서는 사운드 재생에 관련된 기능을 활용할 계획이다.
#include "Kismet/GameplayStatics.h" //getCharacter, sound
//.h
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Audio")
USoundBase* AttackSound; //사운드 관련, 나는 MS를 사용했다.
//.cpp
if (AttackSound)
{
UGameplayStatics::PlaySoundAtLocation(
this, // WorldContextObject
AttackSound,
start,
1.0f, // VolumeMultiplier
1.0f // PitchMultiplier
);
}