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
| Name | Type | Default | Meaning |
|---|---|---|---|
InWidth | int32 | — | Samples per row and rows. |
InHeight | int32 | — | Samples per row and rows. |
InSamples | TArray< | — | InWidth × InHeight values, row-major, row 0 at MinTile's base row. |
Returns
false, with nothing changed, if the sizes disagree.