Navigation
Unreal Engine C++ API Reference > 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 ( [UMaterialInstance](API\Runtime\Engine\Materials\UMaterialInstance) * MaterialInstance, [UMaterialExpression](API\Runtime\Engine\Materials\UMaterialExpression) * SwitchValueExpression, bool & OutValue, [FGuid](API\Runtime\Core\Misc\FGuid) & OutExpressionID, [TArray](API\Runtime\Core\Containers\TArray)< [FGetVisibleMaterialParametersFunctionState](API\Editor\MaterialEditor\FGetVisibleMaterialParametersFun-) * > & FunctionStack )
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. |