FDatasmithSceneFactory::CreateMaterialExpression

Creates a MaterialExpression from the given type.

Windows
MacOS
Linux

References

Module

DatasmithCore

Header

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

Include

#include "DatasmithSceneFactory.h"

Source

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

Syntax

static TSharedPtr< IDatasmithMaterialExpression > CreateMaterialExpression
(
    EDatasmithMaterialExpressionType MaterialExpression
)

Remarks

Creates a MaterialExpression from the given type. Warning: This function's main purpose is to allow the creation of serialized material expressions. Creating and adding new expressions to a UEPbrMaterial should be done with the IDatasmithUEPbrMaterialElement::AddMaterialExpression() function.

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