Navigation
API > API/Plugins > API/Plugins/MeshPartitionEditor
Imports a heightmap texture file as a new MegaMesh actor which is automatically partitioned along a grid where each tile will have the specified maximum number of vertices.
| Name | FHeightmapImporter |
| Type | class |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartitionEditor/Public/MeshPartitionHeightmapImporter.h |
| Include Path | #include "MeshPartitionHeightmapImporter.h" |
Syntax
class FHeightmapImporter
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FHeightmapImporter
(
const FHeightmapImportParams& InParams |
MeshPartitionHeightmapImporter.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bIsCancelled | bool | MeshPartitionHeightmapImporter.h | ||
| ErrorText | FText | MeshPartitionHeightmapImporter.h | ||
| HeightmapResolution | FInt32Point | MeshPartitionHeightmapImporter.h | ||
| LoadHeightmapTask | Tasks::TTask< TArray64< uint16 > > | MeshPartitionHeightmapImporter.h | ||
| MegaMesh | AMeshPartition * | MeshPartitionHeightmapImporter.h | ||
| MegaMeshMeshProviders | TArray< MeshPartition::UMeshProviderModifier * > | MeshPartitionHeightmapImporter.h | ||
| Meshes | TArray< Geometry::FDynamicMesh3 > | The importer operates on isolated FDynamicMeshes on parallel threads and are then moved onto the output mesh provider on the game thread. | MeshPartitionHeightmapImporter.h | |
| MeshTasks | TArray< TPair< int, Tasks::FTask > > | MeshPartitionHeightmapImporter.h | ||
| Params | FHeightmapImportParams | MeshPartitionHeightmapImporter.h | ||
| SavedPackages | TArray< FString > | Retain a list of all packages that were saved and unloaded in case the user cancels so they can be reverted. | MeshPartitionHeightmapImporter.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FText & GetErrorText() |
Returns the reason for failure, if any occurred. | MeshPartitionHeightmapImporter.h | |
AMeshPartition * GetMegaMesh() |
Returns the newly created mega mesh actor | MeshPartitionHeightmapImporter.h | |
bool Import
(
FPackageSourceControlHelper* InSourceControlHelper |
Execute the import operation. | MeshPartitionHeightmapImporter.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TArray< FSectionInfo > GetSectionInfos
(
const FHeightmapImportParams& Params |
Returns the sections that need to be generated based on a given set of parameters. | MeshPartitionHeightmapImporter.h |