![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Classes | |
| struct | FUVEditParameters |
Functions | |
| DATASMITHCORE_API IDatasmithMaterialExpressionTexture * | CreateTextureExpression (const TSharedRef< IDatasmithUEPbrMaterialElement > &MaterialElement, const TCHAR *ParameterName, const TCHAR *TextureMapPath, const FUVEditParameters &UVParameters) |
| DATASMITHCORE_API IDatasmithMaterialExpression * | CreateWeightedMaterialExpression (const TSharedRef< IDatasmithUEPbrMaterialElement > &MaterialElement, const TCHAR *ParameterName, TOptional< FLinearColor > Color, TOptional< float > Scalar, IDatasmithMaterialExpression *Expression, float Weight, EDatasmithTextureMode TextureMode=EDatasmithTextureMode::Diffuse) |
| DATASMITHCORE_API FLinearColor | TemperatureToColor (float Kelvin) |
| IDatasmithMaterialExpressionTexture * DatasmithMaterialsUtils::CreateTextureExpression | ( | const TSharedRef< IDatasmithUEPbrMaterialElement > & | MaterialElement, |
| const TCHAR * | ParameterName, | ||
| const TCHAR * | TextureMapPath, | ||
| const FUVEditParameters & | UVParameters | ||
| ) |
Generate material expressions on a given DatasmithUEPbrMaterialElement to output a texture with UV settings applied to it
| 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 |
| IDatasmithMaterialExpression * DatasmithMaterialsUtils::CreateWeightedMaterialExpression | ( | const TSharedRef< IDatasmithUEPbrMaterialElement > & | MaterialElement, |
| const TCHAR * | ParameterName, | ||
| TOptional< FLinearColor > | Color, | ||
| TOptional< float > | Scalar, | ||
| IDatasmithMaterialExpression * | Expression, | ||
| float | Weight, | ||
| EDatasmithTextureMode | TextureMode = EDatasmithTextureMode::Diffuse |
||
| ) |
Generate material expressions on a given DatasmithUEPbrMaterialElement that output a color or scalar interpolated with a MaterialExpression
| MaterialElement | The UEPbrMaterialElement on which to create the material expressions |
| ParameterName | The display name for the Color or Scalar input |
| Color | The color to interpolate the Expression with. If no color is given, use the scalar |
| Scalar | The scalar to interpolate the Expression with. If no color or scalar are given, use the Expression only |
| Expression | The MaterialExpression to interpolate the Color or Scalar with |
| Weight | The weight of the Expression in the interpolation |
| TextureMode | The TextureMode of the Expression to determine if it requires normal flattening (bump and normal mode) or interpolation |
| FLinearColor DatasmithMaterialsUtils::TemperatureToColor | ( | float | Kelvin | ) |