Navigation
API > API/Developer > API/Developer/DatasmithFacade > API/Developer/DatasmithFacade/FDatasmithFacadeMaterialsUtils
Helper struct used for reproducing the behavior of the optional value-type in interfaced language.
| Name | FWeightedMaterialExpressionParameters |
| Type | struct |
| Header File | /Engine/Source/Developer/Datasmith/DatasmithFacade/Public/DatasmithFacadeMaterialsUtils.h |
| Include Path | #include "DatasmithFacadeMaterialsUtils.h" |
Syntax
struct FWeightedMaterialExpressionParameters
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FWeightedMaterialExpressionParameters
(
float InWeight |
DatasmithFacadeMaterialsUtils.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Color | TOptional< FLinearColor > | BHasColor used to emulate TOptional<> behavior, if bHasColor is false, the Color parameter will be ignored. | DatasmithFacadeMaterialsUtils.h | |
| Expression | FDatasmithFacadeMaterialExpression | Local copy of the optional FDatasmithFacadeMaterialExpression. | DatasmithFacadeMaterialsUtils.h | |
| Scalar | TOptional< float > | BHasScalar used to emulate TOptional<> behavior, if bHasColor is false, the Scalar parameter will be ignored. | DatasmithFacadeMaterialsUtils.h | |
| TextureMode | FDatasmithFacadeTexture::ETextureMode | DatasmithFacadeMaterialsUtils.h | ||
| Weight | float | DatasmithFacadeMaterialsUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetColor
(
float R, |
Set the color parameter taking linear channel input. | DatasmithFacadeMaterialsUtils.h | |
void SetColorsRGB
(
uint8 R, |
Set the color parameter taking non-linear sRGB channel input. | DatasmithFacadeMaterialsUtils.h | |
void SetExpression
(
const FDatasmithFacadeMaterialExpression& InExpression |
DatasmithFacadeMaterialsUtils.h | ||
void SetScalar
(
float Value |
DatasmithFacadeMaterialsUtils.h | ||
void SetTextureMode
(
FDatasmithFacadeTexture::ETextureMode InTextureMode |
DatasmithFacadeMaterialsUtils.h |