import_landscape_heightmap
Load a PNG or 16-bit .r16 heightmap onto an existing Unreal landscape to create terrain relief, avoiding editor import issues like partial fills and dropped peaks.
Instructions
Load a PNG or 16-bit .r16 heightmap file from disk and stamp it onto an existing landscape: this is the reliable route to terrain relief, and the reason to prefer it over the editor's Import from File dialog, which can fill only part of the components and drop the peak with no warning at all. It does not negotiate resolution -- create the landscape at the file's own vertex size first (create_landscape) so resampled comes back false. success/applied is an acknowledgement, not proof: the oracle is export_landscape_heightmap plus an array compare against the source file, or get_landscape_height_at probes.
Returns: { landscape_actor_name: string, file_path: string, source_width: int, source_height: int, dest_width: int, dest_height: int, resampled: bool, applied: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flip_y | No | Optional, flip the Y axis on import | |
| file_path | Yes | Absolute filesystem path or /Game asset path of the heightmap | |
| landscape_actor_name | No | Optional landscape actor name, defaults to first found |