Forced building to be static
This commit is contained in:
parent
127823b6d0
commit
de8b2e4ada
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue