FMaterialUtilities::CreateMaterial

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

Windows
MacOS
Linux

References

Module

MaterialUtilities

Header

/Engine/Source/Developer/MaterialUtilities/Public/MaterialUtilities.h

Include

#include "MaterialUtilities.h"

Source

/Engine/Source/Developer/MaterialUtilities/Private/MaterialUtilities.cpp

Syntax

static UMaterial * CreateMaterial
(
    const FFlattenMaterial & InFlattenMaterial,
    UPackage * InOuter,
    const FString & BaseName,
    EObjectFlags Flags,
    const struct FMaterialProxySettings & MaterialProxySettings,
    TArray< UObject * > & OutGeneratedAssets,
    const TextureGroup & InTextureGroup
)

Remarks

Creates UMaterial object from a flatten material

Returns

Returns a pointer to the constructed UMaterial object.

Parameters

Parameter

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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss