Navigation
API > API/Developer > API/Developer/DatasmithFacade > API/Developer/DatasmithFacade/FDatasmithFacadeMaterialsUtils
Description
Generate material expressions on a given FDatasmithFacadeUEPbrMaterial that output a color or scalar interpolated with a MaterialExpression. The returned pointer must be deleted after use.
| Name | CreateNewFacadeWeightedMaterialExpression |
| Type | function |
| Header File | /Engine/Source/Developer/Datasmith/DatasmithFacade/Public/DatasmithFacadeMaterialsUtils.h |
| Include Path | #include "DatasmithFacadeMaterialsUtils.h" |
| Source | /Engine/Source/Developer/Datasmith/DatasmithFacade/Private/DatasmithFacadeMaterialsUtils.cpp |
static FDatasmithFacadeMaterialExpression * CreateNewFacadeWeightedMaterialExpression
(
FDatasmithFacadeUEPbrMaterial & MaterialElement,
const TCHAR * ParameterName,
FWeightedMaterialExpressionParameters & WeightedExpressionParameter
)
Parameters
| Name | Remarks |
|---|---|
| MaterialElement | The UEPbrMaterialElement on which to create the material expressions |
| ParameterName | The display name for the Color or Scalar input |
| WeightedExpressionParamater | The structure defining the parameters of this weighted expression. |