IMaterialEditor

Public interface to Material Editor

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MaterialEditor

Header

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

Include

#include "IMaterialEditor.h"

Syntax

class IMaterialEditor :
    public FAssetEditorToolkit,
    public IHasMenuExtensibility,
    public IHasToolBarExtensibility

Remarks

Public interface to Material Editor

Functions

Name Description

Public function Virtual

void

 

AddToSelection

(
    UMaterialExpression* Expressio...
)

Add the specified material expression's graph node to the list of selected nodes

Public function

bool

 

ApproveSetPreviewAsset

(
    UObject* InAsset
)

Allows editor to veto the setting of a preview mesh

Public function Virtual Const

bool

 

CanPasteNodes()

Checks whether nodes can currently be pasted

Public function Virtual

UMaterialExp...

 

CreateNewMaterialExpression

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

Creates a new material expression of the specified class.

Public function Virtual

UMaterialExp...

 

CreateNewMaterialExpressionComment

(
    const FVector2D& NodePos
)

Creates a new material expression comment

Public function Virtual

void

 

DeleteNodes

(
    const TArray< class UEdGraphNode&#...
)

Delete an array of Material Graph Nodes and their corresponding expressions/comments

Public function Virtual

void

 

DeleteSelectedNodes()

Disconnects and removes the selected material graph nodes.

Public function

void

 

DrawMessages

(
    FViewport* Viewport,
    FCanvas* Canvas
)

Draws messages on the specified viewport and canvas.

Public function Virtual

void

 

ForceRefreshExpressionPreviews()

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

Public function Virtual Const

void

 

GetBoundsForNode

(
    const UEdGraphNode* InNode,
    FSlateRect& OutRect,
    float InPadding
)

Get the visible bounds of the given graph node

Public function Virtual

FMaterialRen...

 

GetExpressionPreview

(
    UMaterialExpression* InExpress...
)

Gets the preview for an expression

Public function Const

UMaterialInt...

 

GetMaterialInterface()

The material instance applied to the preview mesh.

Public function Virtual Const

int32

 

GetNumberOfSelectedNodes()

Gets the number of selected nodes

Public function Virtual Const

FText

 

GetOriginalObjectName()

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

Public function Virtual Const

TSet< UObjec...

 

GetSelectedNodes()

Get the currently selected set of nodes

Public function Virtual

void

 

NotifyExternalMaterialChange()

Call this to notify the editor that the edited material changed from outside

Public function Virtual

FMaterialEdi...

 

OnMaterialEditorClosed()

Public function Virtual

FRegisterTab...

 

OnRegisterTabSpawners()

Public function Virtual

FUnregisterT...

 

OnUnregisterTabSpawners()

Public function Virtual

void

 

PasteNodesHere

(
    const FVector2D& Location
)

Paste nodes at a specific location

Public function Virtual

void

 

UpdateMaterialAfterGraphChange()

Re-links the material and updates its representation in the editor, used when graph is changed outside of editor code.

Public function Virtual

void

 

UpdateSearch

(
    bool bQueryChanged
)

Updates the SearchResults array based on the search query

Classes

Name

Description

Public class

FMaterialEditorClosedEvent

Delegate to be called when this IMaterialEditor is about to be destroyed

Public class

FRegisterTabSpawnersEvent

Delegate to be called when the tabs are being registered

Public class

FUnregisterTabSpawnersEvent

Delegate to be called when the tabs are being unregistered

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