UE5 World Partition can not delete landscape

----From source code UE5 EA2,we can see:

–inheritance relations:
AISMPartitionActor : public APartitionActor;
ALandscapeProxy : public APartitionActor;

–call tree:
UUnrealEdEngine::DeleteActors()
UUnrealEdEngine::CanDeleteActor()
AActor::CanDeleteActor()
AActor::IsUserManaged()

–APartitonActor::IsUserManaged() overrided:
bool APartitionActor::IsUserManaged() const{
if (GetLevel()->bIsPartitioned){return false;}
return true;
}

–So we can see:
A partition actor is managed by engine: it will be saved to seperated asset file to ExternalActors Folder instead of to be serrialized to umap file,so it can’t be deleted by user; An AStaticMeshActor can be deleted by user,because it has seperate asset file always…

1 Like