Orrery Terrain · OrreryTerrainEditor module · member function
UOrreryTerrainMaterialLibrary::
WrapMaterialAs
Editor onlyBlueprintThe wrapper of Parent at an exact package name, made and saved if missing, re-parented if it wraps another material.
Declaration
UFUNCTION(BlueprintCallable, Category="Orrery|Terrain|Materials")
static UMaterialInstanceConstant* WrapMaterialAs(UMaterialInterface* Parent, const FString& PackageName);Blueprint Wrap Material As
The graph as text
- Wrap Material As (function call)
- In Parent (MaterialInterface object): None
- In Package Name (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 As, in Orrery › Terrain › Materials
Description
For content with its own naming, such as the plugin's MI_TerrainDefault_W.
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
Parent | UMaterial | — | Any surface material or instance. |
PackageName | const FString& | — | Long package name of the wrapper. |