FMaterialUtilities::CreateMaterial

Creates [UMaterial](API\Runtime\Engine\Materials\UMaterial) object from a flatten material

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 [UMaterial](API\Runtime\Engine\Materials\UMaterial) * CreateMaterial
(
    const [FFlattenMaterial](API\Developer\MaterialUtilities\FFlattenMaterial) & InFlattenMaterial,
    [UPackage](API\Runtime\CoreUObject\UObject\UPackage) * InOuter,
    const [FString](API\Runtime\Core\Containers\FString) & BaseName,
    EObjectFlags Flags,
    const struct [FMaterialProxySettings](API\Runtime\Engine\Engine\FMaterialProxySettings) & MaterialProxySettings,
    [TArray](API\Runtime\Core\Containers\TArray)< [UObject](API\Runtime\CoreUObject\UObject\UObject) * > & OutGeneratedAssets,
    const TextureGroup & InTextureGroup
)

Remarks

Creates UMaterial object from a flatten material Returns a pointer to the constructed UMaterial 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.
OutGeneratedAssets List of generated assets - material, textures

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library