Navigation
Unreal Engine C++ API Reference > Developer > MaterialUtilities > FMaterialUtilities
References
Module | MaterialUtilities |
Header | /Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h |
Include | #include "MaterialUtilities.h" |
Source | /Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp |
static UMaterialInstanceConstant &42; CreateInstancedMaterial
&40;
UMaterialInterface &42; BaseMaterial,
UPackage &42; InOuter,
const FString & BaseName,
EObjectFlags Flags
&41;
Remarks
Creates an instanced material based of BaseMaterial Returns a pointer to the constructed UMaterialInstanceConstant object.
Parameters
Name | Description |
---|---|
Outer | Outer for the material and texture objects, if NULL new packages will be created for each asset |
BaseName | BaseName for the material and texture objects, should be a long package name in case Outer is not specified |
Flags | Object flags for the material and texture objects. |