You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
cf3190c988
* The open dialog was incorrectly used for selecting fils to export #rb chris.tchou [CL 25824406 by don boogert in ue5-main branch]
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "FileHelpers.h"
|
|
|
|
class ALandscapeProxy;
|
|
class ALandscapeStreamingProxy;
|
|
class ULandscapeLayerInfoObject;
|
|
class UWorldPartition;
|
|
|
|
namespace LandscapeEditorUtils
|
|
{
|
|
bool LANDSCAPEEDITOR_API SetHeightmapData(ALandscapeProxy* Landscape, const TArray<uint16>& Data);
|
|
bool LANDSCAPEEDITOR_API SetWeightmapData(ALandscapeProxy* Landscape, ULandscapeLayerInfoObject* LayerObject, const TArray<uint8>& Data);
|
|
|
|
int32 GetMaxSizeInComponents();
|
|
TOptional<FString> GetImportExportFilename(const FString& InDialogTitle, const FString& InStartPath, const FString& InDialogTypeString, bool bInImporting);
|
|
|
|
template<typename T>
|
|
void SaveObjects(TArrayView<T*> InObjects)
|
|
{
|
|
TArray<UPackage*> Packages;
|
|
Algo::Transform(InObjects, Packages, [](UObject* InObject) { return InObject->GetPackage(); });
|
|
UEditorLoadingAndSavingUtils::SavePackages(Packages, /* bOnlyDirty = */ false);
|
|
}
|
|
|
|
void SaveLandscapeProxies(TArrayView<ALandscapeProxy*> Proxies, UWorldPartition* WorldPartition);
|
|
}
|