Module |
|
Header |
/Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h |
Include |
#include "MaterialEditorUtilities.h" |
Source |
/Engine/Source/Editor/MaterialEditor/Private/MaterialEditorUtilities.cpp |
static bool GetStaticSwitchExpressionValue
(
UMaterialInstance * MaterialInstance,
UMaterialExpression * SwitchValueExpression,
bool & OutValue,
FGuid & OutExpressionID,
TArray< FGetVisibleMaterialParametersFunctionState * > & FunctionStack
)
Returns the value for a static switch material expression.
Returns true if a value for the switch expression is found, otherwise returns false.
Parameter |
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. |