Skip to content
Snippets Groups Projects
Commit 4beca149 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

add more directivity methods

parent e117f0f0
No related branches found
No related tags found
No related merge requests found
......@@ -487,6 +487,16 @@ bool UVAAbstractSourceComponent::SetDirectivityByFileName(const FString FileName
return SoundSource->SetDirectivity(CurrentReceiverActor->GetDirectivityByFileName(FileName));
}
bool UVAAbstractSourceComponent::SetDefaultDirectivity()
{
return SoundSource->SetDirectivity(FVADirectivityManager::GetDefaultDirectivity());
}
bool UVAAbstractSourceComponent::SetNoDirectivity()
{
return SoundSource->RemoveDirectivity();
}
FString UVAAbstractSourceComponent::GetDirectivityFileName() const
{
if (SoundSource.IsValid())
......
......@@ -157,6 +157,12 @@ public:
UFUNCTION(BlueprintCallable)
bool SetDirectivityByFileName(FString FileName);
UFUNCTION(BlueprintCallable)
bool SetDefaultDirectivity();
UFUNCTION(BlueprintCallable)
bool SetNoDirectivity();
// Gets the File Name of the Directivity
UFUNCTION(BlueprintCallable)
FString GetDirectivityFileName() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment