diff --git a/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp b/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp index 181fdb879c1d496534d66b4d36b9e7a1c635d983..a2c68f83827d1ac51d5d2f3ab7c092c559d0f294 100644 --- a/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp +++ b/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp @@ -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()) diff --git a/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h b/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h index c2c95bd4a8772b92716d2be0c83be9e6e8552a99..4575805e77962f723c74eecedc5414cbe8debb6e 100644 --- a/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h +++ b/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h @@ -156,6 +156,12 @@ public: // Sets Directivity by a File Name, Passing a empty string "" removes the directivity, passing "default" sets the default directivity UFUNCTION(BlueprintCallable) bool SetDirectivityByFileName(FString FileName); + + UFUNCTION(BlueprintCallable) + bool SetDefaultDirectivity(); + + UFUNCTION(BlueprintCallable) + bool SetNoDirectivity(); // Gets the File Name of the Directivity UFUNCTION(BlueprintCallable)