Created button for possible mobility warnings

This commit is contained in:
Roel Algaba Brizuela 2021-04-28 13:02:14 +02:00 committed by bernat
parent a9d17aa665
commit 643043fb8f
2 changed files with 11 additions and 0 deletions

View File

@ -46,6 +46,14 @@ UHierarchicalInstancedStaticMeshComponent* AProceduralBuilding::GetHISMComp(
return HISMComp;
}
void AProceduralBuilding::FixMobility() {
for (UChildActorComponent *ChildComp : ChildActorComps) {
ChildComp->SetMobility(EComponentMobility::Type::Static);
}
}
void AProceduralBuilding::ConvertOldBP_ToNativeCodeObject(AActor* BP_Building)
{
AProceduralBuilding* ProceduralBuilding = nullptr;

View File

@ -94,6 +94,9 @@ protected:
UFUNCTION(BlueprintCallable, CallInEditor, Category="Procedural Building")
void Reset();
UFUNCTION(BlueprintCallable, CallInEditor, Category="Procedural Building")
void FixMobility();
// TODO: AdvancedDisplay
// Map containing the pair with the name of the mesh and the component that uses it
UPROPERTY(BlueprintReadOnly, EditAnywhere, Category="Procedural Building|Debug")