DatasmithMaterialsUtils::CreateTextureExpression

Generate material expressions on a given DatasmithUEPbrMaterialElement to output a texture with UV settings applied to it

Windows
MacOS
Linux

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithMaterialsUtils.h

Include

#include "DatasmithMaterialsUtils.h"

Source

/Engine/Source/Runtime/Datasmith/DatasmithCore/Private/DatasmithMaterialsUtils.cpp

Syntax

namespace DatasmithMaterialsUtils
{
    IDatasmithMaterialExpressionTexture * DatasmithMaterialsUtils::CreateTextureExpression
    (
        const TSharedRef< IDatasmithUEPbrMaterialElement > & MaterialElement,
        const TCHAR * ParameterName,
        const TCHAR * TextureMapPath,
        const FUVEditParameters & UVParameters
    )
}

Remarks

Generate material expressions on a given DatasmithUEPbrMaterialElement to output a texture with UV settings applied to it

Returns

Texture expression with UVEdit applied to it; nullptr if no TextureMapPath is specified

Parameters

Parameter

Description

MaterialElement

The UEPbrMaterialElement on which to create the material expressions

ParameterName

The display name for the Texture expression

TextureMapPath

The texture to use for the Texture expression

UVParameters

The UVEditParameters to apply

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