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& DisplayName,
    const FString& FunctionName,
    EMaterialValueType ValueType,
    const FVector4& DefaultValue,
    MaterialAttributeBlendFunction BlendFunction
)

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,
    EMaterialProperty Property
)

Compiles the default expression for a material attribute

Public function Static

int32

 

CompileDefaultExpression

(
    FMaterialCompiler* Compiler,
    const FGuid& AttributeID
)

Compiles the default expression for a material attribute

Public function Static

MaterialAttributeBlendFunction

 

GetBlendFunction

(
    const FGuid& AttributeID
)

Returns the custom blend function of a material attribute

Public function Static

void

 

GetCustomAttributeList

(
    TArray< FMaterialCustomOutputAttributeDefintion >& CustomAttributeList
)

Returns a list of registered custom attributes

Public function Static

FGuid

 

GetDefaultID()

Returns a default attribute AttributeID

Public function Static

FString

 

GetDisplayName

(
    const FGuid& AttributeID
)

Returns the display name of a material attribute

Public function Static

FString

 

GetDisplayName

(
    EMaterialProperty Property
)

Returns the display name of a material attribute

Public function Static

FGuid

 

GetID

(
    EMaterialProperty Property
)

Returns the attribute ID for a matching material property

Public function Static

const TArray< FGuid > &

 

GetOrderedVisibleAttributeList()

Public function Static

EMaterialProperty

 

GetProperty

(
    const FGuid& AttributeID
)

Returns a the material property matching the specified attribute AttributeID

Public function Static

EShaderFrequency

 

GetShaderFrequency

(
    EMaterialProperty Property
)

Returns the shader frequency of a material attribute

Public function Static

EShaderFrequency

 

GetShaderFrequency

(
    const FGuid& AttributeID
)

Returns the shader frequency of a material attribute

Public function Static

EMaterialValueType

 

GetValueType

(
    EMaterialProperty Property
)

Returns the value type of a material attribute

Public function Static

EMaterialValueType

 

GetValueType

(
    const FGuid& AttributeID
)

Returns the value type of a material attribute

Constants

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback