Orrery Terrain · OrreryTerrainEditor module · member function
UOrreryTerrainImportLibrary::
ImportRaw16
Editor onlyBlueprintFill a heightmap source asset from a little-endian 16-bit RAW file.
Declaration
UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Editor")
static bool ImportRaw16(UOrreryTerrainHeightmapSourceAsset* Asset, const FString& Path, int32 Width, int32 Height);Blueprint Import Raw 16
The graph as text
- Import Raw 16 (function call)
- In Asset (OrreryTerrainHeightmapSourceAsset object): None
- In Path (String): empty
- In Width (Integer): 0
- In Height (Integer): 0
- Out Return Value (Boolean): not connected
- Header
#include "OrreryTerrainImportLibrary.h"- Module
PublicDependencyModuleNames.Add("OrreryTerrainEditor");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 Orrery › 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
| Name | Type | Default | Meaning |
|---|---|---|---|
Asset | UOrrery | — | The asset to fill. |
Path | const FString& | — | Absolute path of the RAW file; its size must be 2 * Width * Height bytes. |
Width | int32 | — | Samples per row. |
Height | int32 | — | 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.