Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrain module · member function

UOrreryTerrainBrushAsset::

BakeFromTexture

Blueprint

Bake a texture into this asset with the asset's Usage, Side and Depth.

Declaration

UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Brush")
EOrreryTerrainBrushBake BakeFromTexture(UTexture2D* Texture, EOrreryTerrainBrushChannel InChannel, bool bInvertSamples);
Blueprint Bake from Texture
The graph as text
  1. Bake from Texture (function call; Target is Orrery Terrain Brush Asset)
    • In Target (self object): self
    • In Texture (Texture2D object): None
    • In In Channel (EOrreryTerrainBrushChannel): Red
    • In Invert Samples (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 Texture, in Orrery › Terrain › Brush

Description

Outside the editor the texture needs a CPU copy.

Parameters

NameTypeDefaultMeaning
TextureUTexture2D*——
InChannelEOrreryTerrainBrushChannel——
bInvertSamplesbool——

Returns

Ok, or why the bake was refused; the asset is unchanged on a refusal.