Skip to content
Brass Orrery

Orrery Terrain · OrreryTerrainEditor module · member function

UOrreryTerrainMaterialLibrary::

WrapMaterial

Editor onlyBlueprint

The wrapper of Parent in Folder, made and saved if missing.

Declaration

UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Materials")
static UMaterialInstanceConstant* WrapMaterial(UMaterialInterface* Parent, const FString& Folder);
Blueprint Wrap Material
The graph as text
  1. Wrap Material (function call)
    • In Parent (MaterialInterface object): None
    • In Folder (String): empty
    • Out Return Value (MaterialInstanceConstant object): not connected
Header
#include "OrreryTerrainMaterialLibrary.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.
Thread
Editor, game thread. (the rule of UOrreryTerrainMaterialLibrary)
Blueprint
Wrap Material, in Orrery › Terrain › Materials

Parameters

NameTypeDefaultMeaning
ParentUMaterialInterface*—

Any surface material or instance; a wrapper is returned as is.

Folderconst FString&—

Long package path, e.g. /Game/Terrain/TerrainWrappers.

Returns

The wrapper, or null when Parent is null or not a surface material.