Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UMaterialExpressionSetMaterialAttributes |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionSetMaterialAttributes.h |
| Include Path | #include "Materials/MaterialExpressionSetMaterialAttributes.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionSetMaterialAttributes : public UMaterialExpression
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMaterialExpression → UMaterialExpressionSetMaterialAttributes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UMaterialExpressionSetMaterialAttributes
(
const FObjectInitializer& ObjectInitializer |
Materials/MaterialExpressionSetMaterialAttributes.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AttributeSetTypes | TArray< FGuid > | Materials/MaterialExpressionSetMaterialAttributes.h |
|
|
| Inputs | TArray< FExpressionInput > | Materials/MaterialExpressionSetMaterialAttributes.h | ||
| PreEditAttributeSetTypes | TArray< FGuid > | Materials/MaterialExpressionSetMaterialAttributes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool ConnectInputAttribute
(
EMaterialProperty Attribute, |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
int32 CreateOrGetInputAttribute
(
EMaterialProperty Attribute |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
uint64 GetConnectedInputs() |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
bool GetSubstrateMaterialInputIndex
(
int32 OutputIndex, |
Materials/MaterialExpressionSetMaterialAttributes.h |
Overridden from UMaterialExpression
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual int32 Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | Materials/MaterialExpressionSetMaterialAttributes.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/MaterialExpressionSetMaterialAttributes.h | |
virtual void GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | Materials/MaterialExpressionSetMaterialAttributes.h | |
virtual void GetExpressionToolTip
(
TArray< FString >& OutToolTip |
Get a tooltip for the expression itself. | Materials/MaterialExpressionSetMaterialAttributes.h | |
virtual FExpressionInput * GetInput
(
int32 InputIndex |
Returns the input at index InputIndex if valid, nullptr otherwise. | Materials/MaterialExpressionSetMaterialAttributes.h | |
virtual FName GetInputName
(
int32 InputIndex |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
virtual TArrayView< FExpressionInput * > GetInputsView() |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
virtual EMaterialValueType GetInputValueType
(
int32 InputIndex |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
virtual bool IsInputConnectionRequired
(
int32 InputIndex |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
virtual bool IsResultMaterialAttributes
(
int32 OutputIndex |
Marks certain expression types as outputting material attributes. | Materials/MaterialExpressionSetMaterialAttributes.h | |
virtual bool IsResultSubstrateMaterial
(
int32 OutputIndex |
Marks certain expression types as outputting Substrate material. | Materials/MaterialExpressionSetMaterialAttributes.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/MaterialExpressionSetMaterialAttributes.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Materials/MaterialExpressionSetMaterialAttributes.h | ||
virtual void PreEditChange
(
FProperty* PropertyAboutToChange |
Materials/MaterialExpressionSetMaterialAttributes.h |