Navigation
API > API/Plugins > API/Plugins/DynamicMaterial > API/Plugins/DynamicMaterial/Model > API/Plugins/DynamicMaterial/Model/IDMMaterialBuildUtilsInterface > API/Plugins/DynamicMaterial/Model/IDMMaterialBuildUtilsInterface/CreateExpression
References
| Module | DynamicMaterial |
| Header | /Engine/Plugins/Experimental/DynamicMaterial/Source/DynamicMaterial/Public/Model/IDMMaterialBuildUtilsInterface.h |
| Include | #include "Model/IDMMaterialBuildUtilsInterface.h" |
UMaterialExpression * CreateExpression
(
TSubclassOf < UMaterialExpression > InExpressionClass,
const FString & InComment,
UObject * InAsset
) const
Remarks
Creates an expression of the given class and adds it to the material.
Parameters
| Name | Description |
|---|---|
| InComment | Comment added to the material node. |
| InAsset | Object assigned to the node, such as a texture. |