Orrery Terrain · OrreryTerrainEditor module · function
OrreryTerrainBrushPalette::
ImportSelectedTexture
Editor onlyImport: bake a new brush asset of the selected texture beside it (BM_<Texture>, a unique name), dirty and not saved.
Declaration
UOrreryTerrainBrushAsset* ImportSelectedTexture(const FImportOptions& Options, FString& OutWhy);- Header
#include "Tools/OrreryTerrainBrushPalette.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.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Options | const FImport | — | — |
OutWhy | FString& | — | — |
Returns
The asset, or null with OutWhy set (nothing selected, a bake refused).