Replace deprecated GetComponentsByClass function
Compare changes
@@ -20,7 +20,7 @@
@@ -20,7 +20,7 @@
@@ -49,7 +49,7 @@ void UVAAbstractSourceComponent::EndPlay(const EEndPlayReason::Type EndPlayReaso
@@ -49,7 +49,7 @@ void UVAAbstractSourceComponent::EndPlay(const EEndPlayReason::Type EndPlayReaso
@@ -60,7 +60,7 @@ void UVAAbstractSourceComponent::TickComponent(const float DeltaTime, const ELev
@@ -60,7 +60,7 @@ void UVAAbstractSourceComponent::TickComponent(const float DeltaTime, const ELev
FVAUtils::OpenMessageBox("[UVASourceComponent::TickComponent()]: Sound source is not initialized", true);
@@ -93,27 +93,28 @@ void UVAAbstractSourceComponent::UpdateSkeletalMeshIfAttachToBone()
@@ -93,27 +93,28 @@ void UVAAbstractSourceComponent::UpdateSkeletalMeshIfAttachToBone()
TArray<UActorComponent*> MeshComponents = Owner->GetComponentsByClass(USkeletalMeshComponent::StaticClass());
@@ -138,7 +139,8 @@ void UVAAbstractSourceComponent::Initialize()
@@ -138,7 +139,8 @@ void UVAAbstractSourceComponent::Initialize()
FVAUtils::LogStuff("[UVASourceComponent::BeginPlay()]: No AVAReceiver found! Spawning one with default values", false);
@@ -151,8 +153,12 @@ void UVAAbstractSourceComponent::Initialize()
@@ -151,8 +153,12 @@ void UVAAbstractSourceComponent::Initialize()
FVAUtils::OpenMessageBox("There are more than 1 Receiver Actors in the world. Stopping VAPlugin. Make sure to remove the wrong one.", true);
FVAUtils::LogStuff("[UVASourceComponent::BeginPlay()]: More than 1 Receiver found! Stopping VAPlugin. Make sure to remove the wrong one", true);
@@ -169,9 +175,11 @@ void UVAAbstractSourceComponent::Initialize()
@@ -169,9 +175,11 @@ void UVAAbstractSourceComponent::Initialize()
const std::string ExplicitRendererID = bRendererExplicit ? std::string( TCHAR_TO_UTF8(*RendererID) ): ""; // Empty ID => general source
SoundSource = MakeShared<FVASoundSource>(GetWorld(), GetPosition(), GetRotation(), SoundPower, SoundSourceName, ExplicitRendererID);
@@ -234,7 +242,8 @@ bool UVAAbstractSourceComponent::SetSignalSourceID(const std::string& SignalSour
@@ -234,7 +242,8 @@ bool UVAAbstractSourceComponent::SetSignalSourceID(const std::string& SignalSour
FVAUtils::OpenMessageBox(FString("[UVASourceComponent::SetSignalSourceID]: VA sound source not initialized"), true);
@@ -309,7 +318,6 @@ bool UVAAbstractSourceComponent::GetHandleReflections() const
@@ -309,7 +318,6 @@ bool UVAAbstractSourceComponent::GetHandleReflections() const
@@ -419,7 +427,7 @@ bool UVAAbstractSourceComponent::SetOffsetPosition(const FVector Pos)
@@ -419,7 +427,7 @@ bool UVAAbstractSourceComponent::SetOffsetPosition(const FVector Pos)
@@ -451,7 +459,6 @@ bool UVAAbstractSourceComponent::SetOffsetRotation(const FRotator Rot)
@@ -451,7 +459,6 @@ bool UVAAbstractSourceComponent::SetOffsetRotation(const FRotator Rot)
@@ -481,9 +488,9 @@ bool UVAAbstractSourceComponent::SetDirectivityByFileName(const FString FileName
@@ -481,9 +488,9 @@ bool UVAAbstractSourceComponent::SetDirectivityByFileName(const FString FileName
@@ -516,7 +523,6 @@ FString UVAAbstractSourceComponent::GetDirectivityFileName() const
@@ -516,7 +523,6 @@ FString UVAAbstractSourceComponent::GetDirectivityFileName() const
@@ -568,8 +574,8 @@ bool UVAAbstractSourceComponent::SetBoneName(const FString NewBoneName)
@@ -568,8 +574,8 @@ bool UVAAbstractSourceComponent::SetBoneName(const FString NewBoneName)
@@ -584,7 +590,7 @@ FString UVAAbstractSourceComponent::GetBoneName() const
@@ -584,7 +590,7 @@ FString UVAAbstractSourceComponent::GetBoneName() const
FVAUtils::LogStuff("[UVASourceComponent::GetBoneName()]: Movement is not set to AttachToBone..", true);