FMaterialAttributeDefinitionMap

Material property to attribute data mappings

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Syntax

class FMaterialAttributeDefinitionMap

Remarks

Material property to attribute data mappings

Constructors

Functions

Name Description

Public function Static

void

 

AddCustomAttribute

(
    const FGuid& AttributeID,
    const FString& AttributeName,
    const FString& FunctionName,
    EMaterialValueType ValueType,
    const FVector4& DefaultValue,
    MaterialAttributeBlendFunction Blen...
)

Appends a new attribute definition to the custom output list

Public function Static

void

 

AppendDDCKeyString

(
    FString& String
)

Appends a hash of the property map intended for use with the DDC key

Public function Static

int32

 

CompileDefaultExpression

(
    FMaterialCompiler* Compiler,
    const FGuid& AttributeID
)

Compiles the default expression for a material attribute

Public function Static

int32

 

CompileDefaultExpression

(
    FMaterialCompiler* Compiler,
    EMaterialProperty Property
)

Compiles the default expression for a material attribute

Public function Static

FString

 

GetAttributeName

(
    EMaterialProperty Property
)

Returns the display name of a material attribute

Public function Static

FString

 

GetAttributeName

(
    const FGuid& AttributeID
)

Returns the display name of a material attribute

Public function Static

MaterialAttr...

 

GetBlendFunction

(
    const FGuid& AttributeID
)

Returns the custom blend function of a material attribute

Public function Static

void

 

GetCustomAttributeList

Returns a list of registered custom attributes

Public function Static

FGuid

 

GetDefaultID()

Returns a default attribute AttributeID

Public function Static

FText

 

GetDisplayNameForMaterial

(
    EMaterialProperty Property,
    UMaterial* Material
)

Returns the display name of a material attribute, accounting for overrides based on properties of a given material

Public function Static

FText

 

GetDisplayNameForMaterial

(
    const FGuid& AttributeID,
    UMaterial* Material
)

Returns the display name of a material attribute, accounting for overrides based on properties of a given material

Public function Static

FGuid

 

GetID

(
    EMaterialProperty Property
)

Returns the attribute ID for a matching material property

Public function Static

const TArray...

 

GetOrderedVisibleAttributeList()

Public function Static

EMaterialPro...

 

GetProperty

(
    const FGuid& AttributeID
)

Returns a the material property matching the specified attribute AttributeID

Public function Static

EShaderFrequ...

 

GetShaderFrequency

(
    EMaterialProperty Property
)

Returns the shader frequency of a material attribute

Public function Static

EShaderFrequ...

 

GetShaderFrequency

(
    const FGuid& AttributeID
)

Returns the shader frequency of a material attribute

Public function Static

EMaterialVal...

 

GetValueType

(
    EMaterialProperty Property
)

Returns the value type of a material attribute

Public function Static

EMaterialVal...

 

GetValueType

(
    const FGuid& AttributeID
)

Returns the value type of a material attribute

Constants

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