Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainBrushAsset::

BakeFromPixels

Blueprint

Bake raw single-channel pixels into this asset, replacing any baked mask (game code and tests; the editor bakes from SourceTexture or TiffFile).

Declaration

UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Brush")
EOrreryTerrainBrushBake BakeFromPixels(const TArray<uint8>& Pixels, int32 Width, int32 Height, bool b16Bit);
Blueprint Bake from Pixels
The graph as text
  1. Bake from Pixels (function call; Target is Orrery Terrain Brush Asset)
    • In Target (self object): self
    • In Pixels (array of Byte): not connected
    • In Width (Integer): 0
    • In Height (Integer): 0
    • In B 16Bit (Boolean): false
    • Out Return Value (EOrreryTerrainBrushBake): not connected
Header
#include "OrreryTerrainBrushAsset.h"
Module
PublicDependencyModuleNames.Add("OrreryTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread. (the rule of UOrreryTerrainBrushAsset)
Blueprint
Bake from Pixels, in Orrery › Terrain › Brush

Parameters

NameTypeDefaultMeaning
Pixelsconst TArray<uint8>&—

Width x Height samples, row-major; 2 little-endian bytes each when b16Bit.

Widthint32—

Samples a row.

Heightint32—

Rows.

b16Bitbool—

Samples are 2 little-endian bytes instead of 1.

Returns

Ok, or why the pixels were refused; the asset is unchanged on a refusal.