IMaterialEditor

Public interface to Material Editor

Unreal Engine C++ API Reference > Editor > MaterialEditor

Inheritance Hierarchy

References

   
Module MaterialEditor
Header /Engine/Source/Editor/MaterialEditor/Public/IMaterialEditor.h
Include #include "IMaterialEditor.h"

Syntax

class IMaterialEditor :  
    public [FWorkflowCentricApplication](API\Editor\UnrealEd\WorkflowOrientedApp\FWorkflowCentricApplication),  
    public [IHasMenuExtensibility](API\Editor\UnrealEd\Toolkits\IHasMenuExtensibility),  
    public [IHasToolBarExtensibility](API\Editor\UnrealEd\Toolkits\IHasToolBarExtensibility)  

Remarks

Public interface to Material Editor

Functions

Type Name Description
void AddToSelection ( UMaterialExpression* Expressio... ) Add the specified material expression's graph node to the list of selected nodes
bool ApproveSetPreviewAsset ( UObject* InAsset ) Allows editor to veto the setting of a preview mesh
bool CanPasteNodes () Checks whether nodes can currently be pasted
UMaterialExp... CreateNewMaterialExpression ( UClass* NewExpressionClass, const FVector2D& NodePos, bool bAutoSelect, bool bAutoAssignResource, const UEdGraph* Graph ) Creates a new material expression of the specified class.
UMaterialExp... CreateNewMaterialExpressionComment ( const FVector2D& NodePos, const UEdGraph* Graph ) Creates a new material expression comment
UMaterialExp... CreateNewMaterialExpressionComposite ( const FVector2D& NodePos, const UEdGraph* Graph ) Creates a new material expression composite, along with related child pinbase expressions
void DeleteNodes ( const TArray< class UEdGraphNode&#... ) Delete an array of Material Graph Nodes and their corresponding expressions/comments
void DeleteSelectedNodes () Disconnects and removes the selected material graph nodes.
void DrawMessages ( FViewport* Viewport, FCanvas* Canvas ) Draws messages on the specified viewport and canvas.
void ForceRefreshExpressionPreviews () Refreshes all material expression previews, regardless of whether or not realtime previews are enabled.
void GenerateInheritanceMenu ( UToolMenu* Menu ) Fills inheritance drop down menu
void GetBoundsForNode ( const UEdGraphNode* InNode, FSlateRect& OutRect, float InPadding ) Get the visible bounds of the given graph node
FMaterialRen... GetExpressionPreview ( UMaterialExpression* InExpress... ) Gets the preview for an expression
UMaterialInt... GetMaterialInterface () The material instance applied to the preview mesh.
int32 GetNumberOfSelectedNodes () Gets the number of selected nodes
FText GetOriginalObjectName () Gets the name of the material or material function that we are editing
TSet< UObjec... GetSelectedNodes () Get the currently selected set of nodes
void JumpToExpression ( UMaterialExpression* Expressio... ) Jumps to the node for this expression, if possible
void JumpToHyperlink ( const UObject* ObjectReference ) Jumps to a specific node or graph
void NotifyExternalMaterialChange () Call this to notify the editor that the edited material changed from outside
FMaterialEdi... OnMaterialEditorClosed ()  
FRegisterTab... OnRegisterTabSpawners ()  
FUnregisterT... OnUnregisterTabSpawners ()  
void PasteNodesHere ( const FVector2D& Location, const UEdGraph* Graph ) Paste nodes at a specific location
void UpdateDetailView ()  
void UpdateMaterialAfterGraphChange () Re-links the material and updates its representation in the editor, used when graph is changed outside of editor code.
void UpdateSearch ( bool bQueryChanged ) Updates the SearchResults array based on the search query

Classes

Type 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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library