Orrery Terrain · OrreryTerrainEditor module · class
UOrreryTerrainHeightmapImportSettings
ExperimentalEditor onlyWhat the heightmap import asks when the heightmap has no sidecar to say it: the scale and the extent (Tier 3, editor only).
Declaration
UCLASS(Transient)
class UOrreryTerrainHeightmapImportSettings : public UObject- Header
#include "Factories/OrreryTerrainFactories.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor");in an editor module’s Build.cs: an editor module, not in packaged games.- Stability
- Experimental: supported, may change in a minor version, with a changelog line.
- Derives from
UObject
Description
Shown in the import dialog. With a sidecar beside the file (<file>.json or <name>.json) nothing is asked and the sidecar rules; without one the values here become a sidecar the importer reads.
Functions
- UpdateExtent
Recompute Extent_m from the size and the spacing.
- MakeSidecarJson
The JSON sidecar these values make (size only for RAW).
- Inspect
Read File and the sidecar beside it: sets Info, bHasSidecar, bIsRaw and FileSize.
- PostEditChangeProperty
Properties
| Name | Type | Default | Meaning |
|---|---|---|---|
File | FString | — | The file being imported. |
Info | FString | — | What the file is: its size, or why it cannot be read. |
b | bool | false | A sidecar sits beside the file and gives the scale and extent. |
b | bool | false | True for a RAW file, which needs RawSize. |
Raw | int32 | 1025 | Samples per row of a RAW file (a PNG says its own). Square. |
Cell_ | double | 1.0 | Post spacing in metres, 0.25 to 16. The terrain spans (size - 1) times this. |
Lowest | double | 0.0 | Height of the darkest sample (value 0), metres. |
Highest | double | 1000.0 | Height of the brightest sample (value 65535), metres. |
Origin_ | FVector2 | FVector2 | World position of the first sample, metres. |
Extent_ | double | 0.0 | The side of the terrain these values make, metres; read-only. |
File | int32 | 0 | Samples per row from the file; 0 while unknown. |