create_landscape
Create a flat landscape actor in Unreal Engine to import heightmaps without the editor's New Landscape dialog center/partial fill issues.
Instructions
Create a new terrain: spawn an ALandscape actor in the editor world sized by section_size x sections_per_component x component_count, filled with a FLAT heightmap at height. This is step 1 of two -- the relief comes from a following import_landscape_heightmap onto this actor, and going through this pair instead of the editor's New Landscape dialog is the point: the dialog treats its Location field as the terrain CENTRE (not the corner) and can fill only part of the components on import, silently. Verify the result with get_landscape_info (location, size_x/size_y, component_count), never with what you typed.
Returns: { actor_name: string, actor_path: string, section_size: int, subsection_size_quads: int, sections_per_component: int, component_count_x: int, component_count_y: int, quads_per_component: int, size_x: int, size_y: int, vertex_count: int, height_midpoint: int, imported: bool, landscape_created: bool, location: [number] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| height | No | Initial uint16 height value, default 32768 | |
| location | No | Optional [x, y, z] world location | |
| section_size | No | Vertices per section, default 63 (rounded up to power of two) | |
| component_count_x | No | Components on X axis, default 8 | |
| component_count_y | No | Components on Y axis, default 8 | |
| sections_per_component | No | 1 or 2 sections per component |