Skip to content
Snippets Groups Projects
Commit dc7351e7 authored by Ehret's avatar Ehret
Browse files

fix runtime sound sources

parent 27fd34c2
Branches
No related tags found
No related merge requests found
......@@ -38,9 +38,14 @@ void UVASourceComponent::TickComponent(const float DeltaTime, const ELevelTick T
return;
}
if (!bInitialized)
{
Initialize();
if (!bInitialized)
{
FVAUtils::OpenMessageBox("[UVASourceComponent::TickComponent()]: Sound source is not initialized", true);
}
}
if (bFirstTick && FVAPlugin::GetIsMaster())
......@@ -106,12 +111,6 @@ void UVASourceComponent::Initialize()
CurrentReceiverActor = ReceiverActorTmp;
// If the receiver Actor is initialized but this sound Component not, this Component is spawned at runtime and has to be initialized
if (ReceiverActorTmp->IsInitialized() && !bInitialized)
{
Initialize();
}
UpdateRate = ReceiverActorTmp->GetUpdateRate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment