Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialFunctionInterface
- UMaterialFunction
- UMaterialFunctionMaterialLayer
- UMaterialFunctionMaterialLayerBlend
- UMaterialFunctionInstance
- UMaterialFunctionMaterialLayerBlendInstance
- UMaterialFunctionMaterialLayerInstance
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialFunctionInterface.h |
| Include | #include "Materials/MaterialFunctionInterface.h" |
Syntax
class UMaterialFunctionInterface : public UObject
Remarks
A Material Function is a collection of material expressions that can be reused in different materials
Variables
| Type | Name | Description | |
|---|---|---|---|
| uint32 | CombinedInputTypes | ||
| uint32 | CombinedOutputTypes | ||
| TObjectPtr< UMaterialFunctionInterfaceEditorOnlyData > | EditorOnlyData | ||
| EMaterialFunctionUsage | MaterialFunctionUsage | The intended usage of this function, required for material layers. | |
| FGuid | StateId | Used by materials using this function to know when to recompile. | |
| TObjectPtr< class UThumbnailInfo > | ThumbnailInfo | Information for thumbnail rendering |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialFunctionInterface
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
||
| UMaterialFunctionInterfaceEditorOnlyData * | |||
| void | DeclareConstructClasses
(
TArray< FTopLevelAssetPath >& OutConstructClasses, |
||
| void | ForceRecompileForRendering
(
FMaterialUpdateContext& UpdateContext, |
||
| void | GetAllExpressionsOfType
(
TArray< ExpressionType* >& OutExpressions, |
Get all expressions of the requested type, recursing through any function expressions in the function | |
| const UMaterialFunction * | GetBaseFunction
(
FMFRecursionGuard RecursionGuard |
||
| UMaterialFunction * | GetBaseFunction
(
FMFRecursionGuard RecursionGuard |
||
| const UMaterialFunctionInterface * | Returns GetBaseFunction() as a UMaterialFunctionInterface, useful if MaterialFunction.h hasn't been included yet, and implicit conversion to UMaterialInterface isn't availiable | ||
| UMaterialFunctionInterface * | Returns GetBaseFunction() as a UMaterialFunctionInterface, useful if MaterialFunction.h hasn't been included yet, and implicit conversion to UMaterialInterface isn't availiable | ||
| void | GetDependentFunctions
(
TArray< UMaterialFunctionInterface* >& DependentFunctions |
Returns an array of the functions that this function is dependent on, directly or indirectly. | |
| const FString & | |||
| UMaterialFunctionInterfaceEditorOnlyData * | |||
| const UMaterialFunctionInterfaceEditorOnlyData * | |||
| const UClass * | |||
| TConstArrayView< TObjectPtr< UMaterialExpression > > | |||
| void | GetInputsAndOutputs
(
TArray< struct FFunctionExpressionInput >& OutInputs, |
||
| EMaterialFunctionUsage | |||
| bool | GetNamedParameterOfType
(
const FHashedMaterialParameterInfo& ParameterInfo, |
Finds the first matching parameter by name and type | |
| bool | GetParameterOverrideValue
(
EMaterialParameterType Type, |
||
| UMaterialInterface * | |||
| bool | |||
| FString | Returns If returns an empty string, use the default class name for the material function. | ||
| bool | Get all expressions of the requested type, recursing through any function expressions in the function | ||
| bool | Checks whether a Material Function is arranged in the old style, with inputs flowing from right to left | ||
| bool | IsDependent
(
UMaterialFunctionInterface* OtherFunction |
||
| bool | |||
| bool | |||
| bool | IterateDependentFunctions
(
TFunctionRef< bool(UMaterialFunctionInterface*)> Predicate |
Iterates all functions that this function is dependent on, directly or indrectly. | |
| void | LinkIntoCaller
(
const TArray< FFunctionExpressionInput >& CallerInputs |
||
| bool | OverrideNamedFontParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedRuntimeVirtualTextureParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedScalarParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedSparseVolumeTextureParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedStaticComponentMaskParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedStaticSwitchParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedTextureParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| bool | OverrideNamedVectorParameter
(
const FHashedMaterialParameterInfo& ParameterInfo, |
||
| void | SetReentrantFlag
(
bool bIsReentrant |
||
| void | |||
| void | |||
| void | |||
| bool | UpdateParameterSet
(
ParameterType& Parameter |
Returns if any of the matching parameters have changed | |
| bool | ValidateFunctionUsage
(
FMaterialCompiler* Compiler, |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects | |
| void | PostDuplicate
(
bool bDuplicateForPIE |
Called after duplication & serialization and before PostLoad. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. | |
| bool | Rename this object to a unique name, or change its outer. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| TConstArrayView< TObjectPtr< UMaterialExpression > > | Use GetExpressions() |