Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainHeightmapSourceAsset::

SetSamples

Replace the samples.

Declaration

bool SetSamples(int32 InWidth, int32 InHeight, TArray<uint16>&& InSamples);
Header
#include "OrreryTerrainSourceAsset.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.

Description

Called by importers (16-bit PNG or RAW) in the editor.

Parameters

NameTypeDefaultMeaning
InWidthint32—

Samples per row and rows.

InHeightint32—

Samples per row and rows.

InSamplesTArray<uint16>&&—

InWidth × InHeight values, row-major, row 0 at MinTile's base row.

Returns

false, with nothing changed, if the sizes disagree.