Created button for possible mobility warnings
This commit is contained in:
parent
a9d17aa665
commit
643043fb8f
|
@ -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;
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue