UTaggedComponent only enables the tick when is representing a skeletalmesh

This commit is contained in:
Axel 2023-05-03 16:11:01 +02:00 committed by bernat
parent 133873bf1c
commit 07bbfe1fcc
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ UTaggedComponent::UTaggedComponent(const FObjectInitializer& ObjectInitializer)
TaggedMaterial = TaggedMaterialObject.Object;
PrimaryComponentTick.bCanEverTick = true;
PrimaryComponentTick.bStartWithTickEnabled = false;
}
void UTaggedComponent::OnRegister()

View File

@ -214,6 +214,7 @@ void ATagger::TagActor(const AActor &Actor, bool bTagForSemanticSegmentation)
TaggedComponent->SetColor(Color);
TaggedComponent->MarkRenderStateDirty();
TaggedComponent->SetComponentTickEnabled(true);
}
}