UGameplayStatics::PlaySoundAtLocation

Clear·2025년 5월 2일

EPortfolio docs

특정 위치에 사운드를 재생합니다.

Code

	UFUNCTION(BlueprintCallable, Category="Audio", meta=(WorldContext="WorldContextObject", AdvancedDisplay = "3", UnsafeDuringActorConstruction = "true", Keywords = "play"))
	static ENGINE_API void PlaySoundAtLocation
    (
    	const UObject* WorldContextObject, 
    	USoundBase* Sound,
    	FVector Location, 
    	FRotator Rotation,
    	float VolumeMultiplier = 1.f, 
    	float PitchMultiplier = 1.f,
    	float StartTime = 0.f, 
    	class USoundAttenuation* AttenuationSettings = nullptr,
    	USoundConcurrency* ConcurrencySettings = nullptr, 
    	const AActor* OwningActor = nullptr,
    	const UInitialActiveSoundParams* InitialParams = nullptr
    );

Paramter

  • WorldContextObject
    월드를 참조할 수 있는 객체
  • Sound
    재생할 사운드 자산
  • Location
    사운드를 재생할 월드 좌표
  • VolumeMultiplier
    볼륨 배수
  • PitchMultiplier
    피치 배수
  • StartTime
    사운드의 시작 지점
  • AttenuationSettings
    감쇠 설정
  • ConcurrencySettings
    동시에 재생될 수 있는 횟수 제한 설정
  • OwningActor
    사운드를 소유하는 액터
profile
Programmer

0개의 댓글