Orbdale Terrain · OrbdaleTerrain module · member function
UOrbdaleTerrainBrushAsset::
BakeFromTexture
BlueprintBake 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
- 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
| Name | Type | Default | Meaning |
|---|---|---|---|
Texture | UTexture2 | — | — |
InChannel | EOrbdale | — | — |
bInvertSamples | bool | — | — |
Returns
Ok, or why the bake was refused; the asset is unchanged on a refusal.