Forced building to be static

This commit is contained in:
doterop 2020-11-20 18:51:16 +01:00
parent 127823b6d0
commit de8b2e4ada
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@ AProceduralBuilding::AProceduralBuilding()
UStaticMeshComponent* StaticMeshComponent = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("RootComponent")); UStaticMeshComponent* StaticMeshComponent = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("RootComponent"));
RootComponent = StaticMeshComponent; RootComponent = StaticMeshComponent;
RootComponent->SetMobility(EComponentMobility::Static);
} }
UHierarchicalInstancedStaticMeshComponent* AProceduralBuilding::GetHISMComp( UHierarchicalInstancedStaticMeshComponent* AProceduralBuilding::GetHISMComp(