Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialAttributeDefinitionMap.h |
| Include | #include "Materials/MaterialAttributeDefinitionMap.h" |
Syntax
class FMaterialAttributeDefinitionMap
Remarks
Material property to attribute data mappings
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddCustomAttribute
(
const FGuid& AttributeID, |
Appends a new attribute definition to the custom output list | |
| void | AppendDDCKey
(
FShaderKeyGenerator& KeyGen |
||
| void | AppendDDCKeyString
(
FString& String |
Appends a hash of the property map intended for use with the DDC key | |
| int32 | CompileDefaultExpression
(
FMaterialCompiler* Compiler, |
Compiles the default expression for a material attribute | |
| int32 | CompileDefaultExpression
(
FMaterialCompiler* Compiler, |
Compiles the default expression for a material attribute | |
| const FString & | GetAttributeName
(
const FGuid& AttributeID |
Returns the display name of a material attribute | |
| const FString & | GetAttributeName
(
EMaterialProperty Property |
Returns the display name of a material attribute | |
| MaterialAttributeBlendFunction | GetBlendFunction
(
const FGuid& AttributeID |
Returns the custom blend function of a material attribute | |
| const FMaterialCustomOutputAttributeDefintion * | GetCustomAttribute
(
const FGuid& AttributeID |
Returns the first custom attribute definition that has the specificed attribute AttributeID | |
| const FMaterialCustomOutputAttributeDefintion * | GetCustomAttribute
(
const FString& AttributeName |
Returns the first custom attribute definition that has the specificed attribute name | |
| FGuid | GetCustomAttributeID
(
const FString& AttributeName |
Returns the first custom attribute ID that has the specificed attribute name | |
| void | GetCustomAttributeList
(
TArray< FMaterialCustomOutputAttributeDefintion >& CustomAttributeList |
Returns a list of registered custom attributes | |
| FGuid | GetDefaultID () |
Returns a default attribute AttributeID | |
| FVector4f | GetDefaultValue
(
EMaterialProperty Property |
Returns the default value of a material property | |
| FVector4f | GetDefaultValue
(
const FGuid& AttributeID |
Returns the default value of a material attribute | |
| FText | GetDisplayNameForMaterial
(
EMaterialProperty Property, |
Returns the display name of a material attribute, accounting for overrides based on properties of a given material | |
| FText | GetDisplayNameForMaterial
(
const FGuid& AttributeID, |
Returns the display name of a material attribute, accounting for overrides based on properties of a given material | |
| FGuid | GetID
(
EMaterialProperty Property |
Returns the attribute ID for a matching material property | |
| const TArray< FGuid > & | |||
| EMaterialProperty | GetProperty
(
const FGuid& AttributeID |
Returns a the material property matching the specified attribute AttributeID | |
| EShaderFrequency | GetShaderFrequency
(
EMaterialProperty Property |
Returns the shader frequency of a material attribute | |
| EShaderFrequency | GetShaderFrequency
(
const FGuid& AttributeID |
Returns the shader frequency of a material attribute | |
| EMaterialValueType | GetValueType
(
EMaterialProperty Property |
Returns the value type of a material attribute | |
| EMaterialValueType | GetValueType
(
const FGuid& AttributeID |
Returns the value type of a material attribute |
Constants
| Name | Description |
|---|---|
| GMaterialPropertyAttributesMap |