diff --git a/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp b/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp index a85a86d318f62be9593143c2736223decfd9b4b5..fc32c5118f2cf7593152bceed44a9ca7b4f1363b 100644 --- a/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp +++ b/Source/VAPlugin/Private/SoundSource/VAAbstractSourceComponent.cpp @@ -60,7 +60,11 @@ void UVAAbstractSourceComponent::TickComponent(const float DeltaTime, const ELev if (!bInitialized) { - FVAUtils::OpenMessageBox("[UVASourceComponent::TickComponent()]: Sound source is not initialized", true); + if(!bInformedNotInitialized) + { + FVAUtils::OpenMessageBox("[UVASourceComponent::TickComponent()]: Sound source is not initialized", true); + bInformedNotInitialized = true; + } return; } diff --git a/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h b/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h index fdc43f488dd05293d47550c73553acaa907aa0c0..aeaca2e554db9a43442ffcd254f095b0faf5051d 100644 --- a/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h +++ b/Source/VAPlugin/Public/SoundSource/VAAbstractSourceComponent.h @@ -198,6 +198,7 @@ protected: // Class data bool bFirstTick = true; bool bInitialized = false; + bool bInformedNotInitialized = false; float TimeSinceUpdate; bool ShouldSendCommand() const; float Timer;