Navigation
API > API/Editor > API/Editor/MaterialEditor
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UBlueprintFunctionLibrary
- UMaterialEditingLibrary
References
| Module | MaterialEditor |
| Header | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditingLibrary.h |
| Include | #include "MaterialEditingLibrary.h" |
Syntax
class UMaterialEditingLibrary : public UBlueprintFunctionLibrary
Remarks
Blueprint library for creating/editing Materials
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ClearAllMaterialInstanceParameters
(
UMaterialInstanceConstant* Instance |
Clears all material parameters set by this Material Instance | |
| bool | ConnectMaterialExpressions
(
UMaterialExpression* FromExpression, |
Create connection between two material expressions | |
| bool | ConnectMaterialProperty
(
UMaterialExpression* FromExpression, |
Connect a material expression output to one of the material property inputs (e.g. diffuse color, opacity etc) | |
| UMaterialExpression * | CreateMaterialExpression
(
UMaterial* Material, |
Create a new material expression node within the supplied material | |
| UMaterialExpression * | CreateMaterialExpressionEx
(
UMaterial* Material, |
Create a new material expression node within the supplied material, optionally specifying asset to use | |
| UMaterialExpression * | CreateMaterialExpressionInFunction
(
UMaterialFunction* MaterialFunction, |
Create a new material expression node within the supplied material function | |
| void | DeleteAllMaterialExpressions
(
UMaterial* Material |
Delete all material expressions in the supplied material | |
| void | DeleteAllMaterialExpressionsInFunction
(
UMaterialFunction* MaterialFunction |
Delete all material expressions in the supplied material function | |
| void | DeleteMaterialExpression
(
UMaterial* Material, |
Delete a specific expression from a material. Will disconnect from other expressions. | |
| void | DeleteMaterialExpressionInFunction
(
UMaterialFunction* MaterialFunction, |
Delete a specific expression from a material function. Will disconnect from other expressions. | |
| UMaterialExpression * | DuplicateMaterialExpression
(
UMaterial* Material, |
Duplicates the provided material expression adding it to the same material / material function, and copying parameters. | |
| void | GetChildInstances
(
UMaterialInterface* Parent, |
Gets all direct child mat instances | |
| bool | GetInputNodeOutputNameForMaterialExpression
(
UMaterialExpression* MaterialExpression, |
Get the output name of input node connected to MaterialExpression from an active material editor | |
| TArray< UMaterialExpression * > | GetInputsForMaterialExpression
(
UMaterial* Material, |
Get the set of nodes acting as inputs to a node from an active material editor | |
| float | GetMaterialDefaultScalarParameterValue
(
UMaterial* Material, |
Get the default scalar (float) parameter value from a Material | |
| bool | GetMaterialDefaultStaticSwitchParameterValue
(
UMaterial* Material, |
Get the default static switch parameter value from a Material | |
| UTexture * | GetMaterialDefaultTextureParameterValue
(
UMaterial* Material, |
Get the default texture parameter value from a Material | |
| FLinearColor | GetMaterialDefaultVectorParameterValue
(
UMaterial* Material, |
Get the default vector parameter value from a Material | |
| TArray< FString > | GetMaterialExpressionInputNames
(
UMaterialExpression* MaterialExpression |
Get the array of input pin names for a material expression | |
| TArray< int32 > | GetMaterialExpressionInputTypes
(
UMaterialExpression* MaterialExpression |
Get the array of input pin types for a material expression | |
| void | GetMaterialExpressionNodePosition
(
UMaterialExpression* MaterialExpression, |
Get the position of the MaterialExpression node. | |
| URuntimeVirtualTexture * | GetMaterialInstanceRuntimeVirtualTextureParameterValue
(
UMaterialInstanceConstant* Instance, |
Get the current texture parameter value from a Material Instance | |
| float | GetMaterialInstanceScalarParameterValue
(
UMaterialInstanceConstant* Instance, |
Get the current scalar (float) parameter value from a Material Instance | |
| USparseVolumeTexture * | GetMaterialInstanceSparseVolumeTextureParameterValue
(
UMaterialInstanceConstant* Instance, |
Get the current texture parameter value from a Material Instance | |
| bool | GetMaterialInstanceStaticSwitchParameterValue
(
UMaterialInstanceConstant* Instance, |
Get the current static switch parameter value from a Material Instance | |
| UTexture * | GetMaterialInstanceTextureParameterValue
(
UMaterialInstanceConstant* Instance, |
Get the current texture parameter value from a Material Instance | |
| FLinearColor | GetMaterialInstanceVectorParameterValue
(
UMaterialInstanceConstant* Instance, |
Get the current vector parameter value from a Material Instance | |
| UMaterialExpression * | GetMaterialPropertyInputNode
(
UMaterial* Material, |
Get the node providing the output for a given material property from an active material editor | |
| FString | GetMaterialPropertyInputNodeOutputName
(
UMaterial* Material, |
Get the node output name providing the output for a given material property from an active material editor | |
| TSet< UObject * > | GetMaterialSelectedNodes
(
UMaterial* Material |
Get the set of selected nodes from an active material editor | |
| UMaterialInterface * | GetNaniteOverrideMaterial
(
UMaterialInterface* Material |
Returns any nanite override material for the given material | |
| int32 | GetNumMaterialExpressions
(
const UMaterial* Material |
Returns number of material expressions in the supplied material | |
| int32 | GetNumMaterialExpressionsInFunction
(
const UMaterialFunction* MaterialFunction |
Returns number of material expressions in the supplied material | |
| void | GetScalarParameterNames
(
UMaterialInterface* Material, |
Gets all scalar parameter names | |
| bool | GetScalarParameterSource
(
UMaterialInterface* Material, |
Returns the path of the asset where the parameter originated, as well as true/false if it was found | |
| void | GetStaticSwitchParameterNames
(
UMaterialInterface* Material, |
Gets all static switch parameter names | |
| bool | GetStaticSwitchParameterSource
(
UMaterialInterface* Material, |
Returns the path of the asset where the parameter originated, as well as true/false if it was found | |
| FMaterialStatistics | GetStatistics
(
UMaterialInterface* Material |
Returns statistics about the given material | |
| void | GetTextureParameterNames
(
UMaterialInterface* Material, |
Gets all texture parameter names | |
| bool | GetTextureParameterSource
(
UMaterialInterface* Material, |
Returns the path of the asset where the parameter originated, as well as true/false if it was found | |
| TArray< UTexture * > | GetUsedTextures
(
UMaterial* Material |
Get the list of textures used by a material | |
| void | GetVectorParameterNames
(
UMaterialInterface* Material, |
Gets all vector parameter names | |
| bool | GetVectorParameterSource
(
UMaterialInterface* Material, |
Returns the path of the asset where the parameter originated, as well as true/false if it was found | |
| bool | HasMaterialUsage
(
UMaterial* Material, |
Check if a particular usage is enabled for the supplied material (e.g. SkeletalMesh, ParticleSprite etc) | |
| void | LayoutMaterialExpressions
(
UMaterial* Material |
Layouts the expressions in a grid pattern | |
| void | LayoutMaterialFunctionExpressions
(
UMaterialFunction* MaterialFunction |
Layouts the expressions in a grid pattern | |
| void | RebuildMaterialInstanceEditors
(
UMaterial* BaseMaterial |
Rebuilds dependent Material Instance Editors | |
| void | RebuildMaterialInstanceEditors
(
UMaterialFunction* BaseFunction |
Rebuilds dependent Material Instance Editors | |
| void | RecompileMaterial
(
UMaterial* Material |
Trigger a recompile of a material. | |
| void | SetMaterialInstanceParent
(
UMaterialInstanceConstant* Instance, |
Set the parent Material or Material Instance to use for this Material Instance | |
| bool | SetMaterialInstanceRuntimeVirtualTextureParameterValue
(
UMaterialInstanceConstant* Instance, |
Set the texture parameter value for a Material Instance | |
| bool | SetMaterialInstanceScalarParameterValue
(
UMaterialInstanceConstant* Instance, |
Set the scalar (float) parameter value for a Material Instance | |
| bool | SetMaterialInstanceSparseVolumeTextureParameterValue
(
UMaterialInstanceConstant* Instance, |
Set the texture parameter value for a Material Instance | |
| bool | SetMaterialInstanceStaticSwitchParameterValue
(
UMaterialInstanceConstant* Instance, |
Set the static switch parameter value for a Material Instance | |
| bool | SetMaterialInstanceTextureParameterValue
(
UMaterialInstanceConstant* Instance, |
Set the texture parameter value for a Material Instance | |
| bool | SetMaterialInstanceVectorParameterValue
(
UMaterialInstanceConstant* Instance, |
Set the vector parameter value for a Material Instance | |
| bool | SetMaterialUsage
(
UMaterial* Material, |
Enable a particular usage for the supplied material (e.g. SkeletalMesh, ParticleSprite etc) | |
| void | UpdateMaterialFunction
(
UMaterialFunctionInterface* MaterialFunction, |
Update a Material Function after edits have been made. | |
| void | UpdateMaterialInstance
(
UMaterialInstanceConstant* Instance |
Called after making modifications to a Material Instance to recompile shaders etc. |