Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FMaterial
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include | #include "MaterialShared.h" |
virtual UMaterialExpression &42; GetMaterialGraphNodePreviewExpression&40;&41; const
Remarks
The returned value is not const because the expression is used to build the Strata tree and this requires to execute multiple such as link function caller, compile expression, etc. See HLSLTranslator.cpp for the single use case. Nullptr if this is not a material used to generate a preview of a node of a material graph.