Orbdale Terrain · OrbdaleTerrainEditor module · member function
UOrbdaleTerrainMaterialLibrary::
WrapMaterial
Editor onlyBlueprintThe wrapper of Parent in Folder, made and saved if missing.
Declaration
UFUNCTION(BlueprintCallable, Category="Orbdale|Terrain|Materials")
static UMaterialInstanceConstant* WrapMaterial(UMaterialInterface* Parent, const FString& Folder);Blueprint Wrap Material
The graph as text
- Wrap Material (function call)
- In Parent (MaterialInterface object): None
- In Folder (String): empty
- Out Return Value (MaterialInstanceConstant object): not connected
- Header
#include "OrbdaleTerrainMaterialLibrary.h"- Module
PublicDependencyModuleNames.Add("OrbdaleTerrainEditor");in an editor module’s Build.cs: an editor module, not in packaged games.- Stability
- Stable: changes within a major version only add.
- Thread
- Editor, game thread. (the rule of UOrbdaleTerrainMaterialLibrary)
- Blueprint
- Wrap Material, in Orbdale › Terrain › Materials
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Parent | UMaterial | — | Any surface material or instance; a wrapper is returned as is. |
Folder | const FString& | — | Long package path, e.g. /Game/Terrain/TerrainWrappers. |
Returns
The wrapper, or null when Parent is null or not a surface material.