FMaterialEditorUtilities::GetStaticSwitchExpressionValue

Returns the value for a static switch material expression.

Windows
MacOS
Linux

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h

Include

#include "MaterialEditorUtilities.h"

Source

/Engine/Source/Editor/MaterialEditor/Private/MaterialEditorUtilities.cpp

Syntax

static bool GetStaticSwitchExpressionValue
(
    UMaterialInstance * MaterialInstance,
    UMaterialExpression * SwitchValueExpression,
    bool & OutValue,
    FGuid & OutExpressionID,
    TArray< FGetVisibleMaterialParametersFunctionState * > & FunctionStack
)

Remarks

Returns the value for a static switch material expression.

Returns

Returns true if a value for the switch expression is found, otherwise returns false.

Parameters

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss