Navigation
API > API/Editor > API/Editor/MaterialEditor > API/Editor/MaterialEditor/FMaterialEditorUtilities
References
| Module | MaterialEditor |
| Header | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h |
| Include | #include "MaterialEditorUtilities.h" |
| Source | /Engine/Source/Editor/MaterialEditor/Private/MaterialEditorUtilities.cpp |
static bool GetStaticSwitchExpressionValue
&40;
UMaterialInstance &42; MaterialInstance,
UMaterialExpression &42; SwitchValueExpression,
bool & OutValue,
FGuid & OutExpressionID,
TArray< FGetVisibleMaterialParametersFunctionState &42; > & FunctionStack
&41;
Remarks
Returns the value for a static switch material expression. Returns true if a value for the switch expression is found, otherwise returns false.
Parameters
| Name | Description |
|---|---|
| MaterialInstance | The material instance that contains all parameter overrides. |
| SwitchValueExpression | The switch expression to find the value for. |
| OutValue | The value for the switch expression. |
| OutExpressionID | The Guid of the expression that is input as the switch value. |
| FunctionStack | The current function stack frame. |