Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Materials/MaterialFunction.h |
Include |
#include "Materials/MaterialFunction.h" |
class UMaterialFunction : public UMaterialFunctionInterface
A Material Function is a collection of material expressions that can be reused in different materials
Name | Description | ||
---|---|---|---|
|
uint8: 1 |
bExposeToLibrary |
Whether to list this function in the material function library, which is a window in the material editor that lists categorized functions. |
|
uint8: 1 |
bPrefixParameterNames |
If true, parameters in this function will have a prefix added to their group name. |
|
DependentFunctionExpressionCandidates |
||
|
Description |
Description of the function which will be displayed as a tooltip wherever the function is used. |
|
|
FunctionEditorComments |
Array of comments associated with this material; viewed in the material editor. |
|
|
FunctionExpressions |
Array of material expressions, excluding Comments. Used by the material editor. |
|
|
LibraryCategoriesText |
Categories that this function belongs to in the material function library. |
|
|
TObjectPtr< cla... |
ParentFunction |
Used in the material editor, points to the function asset being edited, which this function is just a preview for. |
|
TEnumAsByte< en... |
PreviewBlendMode |
Determines the blend mode when previewing a material function. |
|
TObjectPtr< UMa... |
PreviewMaterial |
Name | Description | |
---|---|---|
|
UMaterialFunction ( |
Name | Description | ||
---|---|---|---|
|
SetFontParameterValueEditorOnly |
||
|
SetMaterialFunctionUsage ( |
||
|
SetParameterValueEditorOnly ( |
||
|
SetRuntimeVirtualTextureParameterValueEditorOnly ( |
||
|
SetScalarParameterValueEditorOnly ( |
||
|
SetStaticComponentMaskParameterValueEditorOnly |
||
|
SetStaticSwitchParameterValueEditorOnly |
||
|
SetTextureParameterValueEditorOnly |
||
|
SetVectorParameterValueEditorOnly ( |
||
|
UpdateDependentFunctionCandidates() |
Name | Description | ||
---|---|---|---|
|
Compile ( |
||
|
ForceRecompileForRendering ( |
||
|
UMaterialFun... |
GetBaseFunction() |
|
|
const UMater... |
GetBaseFunction() |
|
|
GetDependentFunctions ( |
Returns an array of the functions that this function is dependent on, directly or indirectly. |
|
|
const FStrin... |
GetDescription() |
|
|
const TArray... |
GetFunctionExpressions() |
|
|
GetInputsAndOutputs ( |
Get the inputs and outputs that this function exposes, for a function call expression to use. |
|
|
EMaterialFun... |
GetMaterialFunctionUsage() |
|
|
UMaterialInt... |
GetPreviewMaterial() |
|
|
GetReentrantFlag() |
||
|
HasFlippedCoordinates() |
Checks whether a Material Function is arranged in the old style, with inputs flowing from right to left |
|
|
IsDependent ( |
||
|
IterateDependentFunctions ( |
Iterates all functions that this function is dependent on, directly or indrectly. |
|
|
LinkIntoCaller ( |
Called during compilation before entering the function. |
|
|
SetReentrantFlag ( |
||
|
UnlinkFromCaller() |
||
|
UpdateFromFunctionResource() |
Recursively update all function call expressions in this function, or in nested functions. |
|
|
UpdateInputOutputTypes() |
||
|
ValidateFunctionUsage ( |
Name | Description | ||
---|---|---|---|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name | Description | ||
---|---|---|---|
|
LibraryCategories_DEPRECATED |
Categories that this function belongs to in the material function library. |