Navigation
API > API/Runtime > API/Runtime/DatasmithCore > API/Runtime/DatasmithCore/FDatasmithSceneFactory
Description
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.
| Name | CreateMaterialExpression |
| Type | function |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithSceneFactory.h |
| Include Path | #include "DatasmithSceneFactory.h" |
| Source | /Engine/Source/Runtime/Datasmith/DatasmithCore/Private/DatasmithSceneFactory.cpp |
static TSharedPtr < IDatasmithMaterialExpression > CreateMaterialExpression
(
EDatasmithMaterialExpressionType MaterialExpression
)