Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterial
Description
The returned value is not const because the expression is used to build the Substrate tree and this requires to execute multiple such as link function caller, compile expression, etc. See HLSLTranslator.cpp for the single use case.
| Name | GetMaterialGraphNodePreviewExpression |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
virtual UMaterialExpression * GetMaterialGraphNodePreviewExpression() const
Nullptr if this is not a material used to generate a preview of a node of a material graph.