FMaterialEditorUtilities

Windows
MacOS
Linux

References

Module

MaterialEditor

Header

/Engine/Source/Editor/MaterialEditor/Public/MaterialEditorUtilities.h

Include

#include "MaterialEditorUtilities.h"

Syntax

class FMaterialEditorUtilities

Constructors

No constructors are accessible with public or protected access.

Functions

Name Description

Public function Static

void

 

AddToSelection

(
    const UEdGraph* Graph,
    UMaterialExpression* Expressio...
)

Add the specified object to the list of selected objects

Public function Static

void

 

BuildTextureStreamingData

(
    UMaterialInterface* MaterialIn...
)

Build the texture streaming data for a given material.

Public function Static

bool

 

CanPasteNodes

(
    const UEdGraph* Graph
)

Can we paste to this graph?

Public function Static

UMaterialExp...

 

CreateNewMaterialExpression

(
    const UEdGraph* Graph,
    UClass* NewExpressionClass,
    const FVector2D& NodePos,
    bool bAutoSelect,
    bool bAutoAssignResource
)

Creates a new material expression of the specified class on the material represented by a graph.

Public function Static

UMaterialExp...

 

CreateNewMaterialExpressionComment

(
    const UEdGraph* Graph,
    const FVector2D& NodePos
)

Creates a new material expression comment on the material represented by a graph.

Public function Static

void

 

DeleteNodes

(
    const UEdGraph* Graph,
    const TArray< UEdGraphNode* > ...
)

Delete the specified nodes from the graph.

Public function Static

void

 

DeleteSelectedNodes

(
    const UEdGraph* Graph
)

Disconnects and removes the selected material graph nodes.

Public function Static

const FFunct...

 

FindInputById

(
    const UMaterialExpressionFunctionIn...,
    const TArray< FFunctionExpressionIn...
)

Finds an input in the passed in array with a matching Id.

Public function Static

void

 

ForceRefreshExpressionPreviews

(
    const UEdGraph* Graph
)

Refreshes all material expression previews, regardless of whether or not realtime previews are enabled.

Public function Static

FMaterialRen...

 

GetExpressionPreview

(
    const UEdGraph* Graph,
    UMaterialExpression* InExpress...
)

Get a preview material render proxy for an expression

Public function Static

TSharedPtr< ...

 

GetIMaterialEditorForObject

(
    const UObject* ObjectToFocusOn
)

Get IMaterialEditor for given object, if it exists

Public function Static

void

 

GetMaterialExpressionActions

(
    FGraphActionMenuBuilder& ActionMen...,
    bool bMaterialFunction
)

Get all actions for placing material expressions

Public function Static

int32

 

GetNumberOfSelectedNodes

(
    const UEdGraph* Graph
)

Gets the number of selected nodes on this graph

Public function Static

FText

 

GetOriginalObjectName

(
    const UEdGraph* Graph
)

Gets the name of the material or material function that we are editing

Public function Static

bool

 

GetStaticSwitchExpressionValue

(
    UMaterialInstance* MaterialIns...,
    UMaterialExpression* SwitchVal...,
    bool& OutValue,
    FGuid& OutExpressionID,
    TArray< FGetVisibleMaterialParamete...
)

Returns the value for a static switch material expression.

Public function Static

void

 

GetVisibleMaterialParameters

(
    const UMaterial* Material,
    UMaterialInstance* MaterialIns...,
    TArray< FMaterialParameterInfo >& ...
)

Retrieves all visible parameters within the material.

Public function Static

void

 

InitExpressions

(
    UMaterial* Material
)

Populates the specified material's Expressions array (eg if cooked out or old content).

Public function Static

bool

 

IsMaterialExpressionInFavorites

(
    UMaterialExpression* InExpress...
)

Check whether an expression is in the favourites list

Public function Static

void

 

OnOpenFunction

(
    FAssetData InFunction
)

Public function Static

void

 

OnOpenMaterial

(
    FAssetData InMaterial
)

Commands for the Parents menu

Public function Static

void

 

OnShowFunctionInContentBrowser

(
    FAssetData InFunction
)

Public function Static

void

 

OnShowMaterialInContentBrowser

(
    FAssetData InMaterial
)

Public function Static

void

 

PasteNodesHere

(
    UEdGraph* Graph,
    const FVector2D& Location
)

Perform paste on graph, at location

Public function Static

void

 

UpdateMaterialAfterGraphChange

(
    const UEdGraph* Graph
)

Re-links the material and updates its representation in the editor

Public function Static

void

 

UpdateSearchResults

(
    const UEdGraph* Graph
)

Updates the material editor search results

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss