Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrain module · member function

UOrbdaleTerrainBrushAsset::

BakeFromTexture

Blueprint

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

Declaration

UFUNCTION(BlueprintCallable, Category="Orbdale|Terrain|Brush")
EOrbdaleTerrainBrushBake BakeFromTexture(UTexture2D* Texture, EOrbdaleTerrainBrushChannel InChannel, bool bInvertSamples);
Blueprint Bake from Texture
The graph as text
  1. Bake from Texture (function call; Target is Orbdale Terrain Brush Asset)
    • In Target (self object): self
    • In Texture (Texture2D object): None
    • In In Channel (EOrbdaleTerrainBrushChannel): Red
    • In Invert Samples (Boolean): false
    • Out Return Value (EOrbdaleTerrainBrushBake): not connected
Header
#include "OrbdaleTerrainBrushAsset.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrain"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
Game thread. (the rule of UOrbdaleTerrainBrushAsset)
Blueprint
Bake from Texture, in Orbdale › Terrain › Brush

Description

Outside the editor the texture needs a CPU copy.

Parameters

NameTypeDefaultMeaning
TextureUTexture2D*——
InChannelEOrbdaleTerrainBrushChannel——
bInvertSamplesbool——

Returns

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