Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainEditor module · member function

UOrbdaleTerrainImportLibrary::

ImportRaw16

Editor onlyBlueprint

Fill a heightmap source asset from a little-endian 16-bit RAW file.

Declaration

UFUNCTION(BlueprintCallable, Category="Orbdale|Terrain|Editor")
static bool ImportRaw16(UOrbdaleTerrainHeightmapSourceAsset* Asset, const FString& Path, int32 Width, int32 Height);
Blueprint Import Raw 16
The graph as text
  1. Import Raw 16 (function call)
    • In Asset (OrbdaleTerrainHeightmapSourceAsset object): None
    • In Path (String): empty
    • In Width (Integer): 0
    • In Height (Integer): 0
    • Out Return Value (Boolean): not connected
Header
#include "OrbdaleTerrainImportLibrary.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrainEditor"); in an editor module’s Build.cs: an editor module, not in packaged games.
Stability
Stable: changes within a major version only add.
Thread
Game thread, editor only.
Blueprint
Import Raw 16, in Orbdale › Terrain › Editor

Description

Parses through the Tier-1 ParseRaw16 and hands the samples to SetSamples. Marks the asset dirty; saving it is the caller's job.

Parameters

NameTypeDefaultMeaning
AssetUOrbdaleTerrainHeightmapSourceAsset*—

The asset to fill.

Pathconst FString&—

Absolute path of the RAW file; its size must be 2 * Width * Height bytes.

Widthint32—

Samples per row.

Heightint32—

Rows. Row 0 is the lowest Y.

Returns

false, with a warning and nothing changed, if the file cannot be read or its size disagrees.

Note.

Game thread, editor only.