Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionFunctionInput |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionFunctionInput.h |
| Include Path | #include "Materials/MaterialExpressionFunctionInput.h" |
Syntax
UCLASS (HideCategories=object, MinimalAPI)
class UMaterialExpressionFunctionInput : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionFunctionInput
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionFunctionInput
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionFunctionInput.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BlendInputRelevance | TEnumAsByte< enum EBlendInputRelevance > | Marks that this input is necessary for blend function use | Materials/MaterialExpressionFunctionInput.h |
|
| bUsePreviewValueAsDefault | uint32 | Whether to use the preview value or texture as the default value for this input. | Materials/MaterialExpressionFunctionInput.h |
|
| Description | FString | The input's description, which will be used as a tooltip on the connector in function call expressions that use this function. | Materials/MaterialExpressionFunctionInput.h |
|
| Id | FGuid | Id of this input, used to maintain references through name changes. | Materials/MaterialExpressionFunctionInput.h | |
| InputName | FName | The input's name, which will be drawn on the connector in function call expressions that use this function. | Materials/MaterialExpressionFunctionInput.h |
|
| InputType | TEnumAsByte< enum EFunctionInputType > | Type of this input. | Materials/MaterialExpressionFunctionInput.h |
|
| Preview | FExpressionInput | Used for previewing when editing the function, or when bUsePreviewValueAsDefault is enabled. | Materials/MaterialExpressionFunctionInput.h |
|
| PreviewValue | FVector4f | Value used to preview this input when editing the material function. | Materials/MaterialExpressionFunctionInput.h |
|
| SortPriority | int32 | Controls where the input is displayed relative to the other inputs. | Materials/MaterialExpressionFunctionInput.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| EffectivePreviewDuringCompile | TArray< FExpressionInput * > | Cascading preview inputs to use when compiling from another material and/or function | Materials/MaterialExpressionFunctionInput.h | |
| InputNameBackup | FName | Stashed data between a Pre/PostEditChange event | Materials/MaterialExpressionFunctionInput.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FExpressionInput * AddNewEffectivePreviewDuringCompile
(
FExpressionInput& InEffectivePreview |
These create and delete new FExpression objects on the heap, but are public to allow creation and removal from external systems. | Materials/MaterialExpressionFunctionInput.h | |
void ConditionallyGenerateId
(
bool bForce |
Generate the Id for this input. | Materials/MaterialExpressionFunctionInput.h | |
void RemoveLastEffectivePreviewDuringCompile() |
Materials/MaterialExpressionFunctionInput.h | ||
void ValidateName() |
Validate InputName. Must be called after InputName is changed to prevent duplicate inputs. | Materials/MaterialExpressionFunctionInput.h |
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Build
(
MIR::FEmitter& Emitter |
Builds this expression's material IR. | Materials/MaterialExpressionFunctionInput.h | |
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionFunctionInput.h | |
virtual int32 CompilePreview
(
FMaterialCompiler* Compiler, |
Materials/MaterialExpressionFunctionInput.h | ||
virtual void GatherSubstrateMaterialInfo
(
FSubstrateMaterialInfo& SubstrateMaterialInfo, |
Recursively parse nodes outputing Substrate material in order to gather all the possible shading models used in a material graph output a Substrate material. | Materials/MaterialExpressionFunctionInput.h | |
| Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionFunctionInput.h | ||
| Get a tooltip for the expression itself. | Materials/MaterialExpressionFunctionInput.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionFunctionInput.h | ||
virtual EMaterialValueType GetOutputValueType
(
int32 OutputIndex |
Materials/MaterialExpressionFunctionInput.h | ||
virtual bool IsAllowedIn
(
const UObject* MaterialOrFunction |
Returns whether the creation of this expression is allowed in a given material or material function | Materials/MaterialExpressionFunctionInput.h | |
virtual bool IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | Materials/MaterialExpressionFunctionInput.h | |
virtual bool IsResultSubstrateMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Substrate material. | Materials/MaterialExpressionFunctionInput.h | |
virtual FSubstrateOperator * SubstrateGenerateMaterialTopologyTree
(
FMaterialCompiler* Compiler, |
A starta material is a tree with FrontMateiral being its root and BSDF being leaves, with operators in the middle. | Materials/MaterialExpressionFunctionInput.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostDuplicate
(
bool bDuplicateForPIE |
Materials/MaterialExpressionFunctionInput.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Materials/MaterialExpressionFunctionInput.h | ||
virtual void PostEditImport() |
Materials/MaterialExpressionFunctionInput.h | ||
virtual void PostLoad() |
Materials/MaterialExpressionFunctionInput.h | ||
virtual void PreEditChange
(
FProperty* PropertyAboutToChange |
Materials/MaterialExpressionFunctionInput.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FString GetInputTypeDisplayName
(
EFunctionInputType InputType |
Materials/MaterialExpressionFunctionInput.h | ||
static EFunctionInputType GetInputTypeFromMaterialType
(
EMaterialValueType MaterialType |
Materials/MaterialExpressionFunctionInput.h | ||
static EMaterialValueType GetMaterialTypeFromInputType
(
EFunctionInputType InputType |
Materials/MaterialExpressionFunctionInput.h |
Deprecated Variables
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCompilingFunctionPreview_DEPRECATED | uint32 | Materials/MaterialExpressionFunctionInput.h |
|