Navigation
Unreal Engine C++ API Reference > Editor > MaterialEditor
Inheritance Hierarchy
- FWorkflowCentricApplication
- IHasMenuExtensibility
- IHasToolBarExtensibility
- IMaterialEditor
References
Module | MaterialEditor |
Header | /Engine/Source/Editor/MaterialEditor/Public/IMaterialEditor.h |
Include | #include "IMaterialEditor.h" |
Syntax
class IMaterialEditor :
public FWorkflowCentricApplication,
public IHasMenuExtensibility,
public IHasToolBarExtensibility
Remarks
Public interface to Material Editor
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AddToSelection
(
UMaterialExpression* Expression |
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 | Checks whether nodes can currently be pasted | |
![]() ![]() |
UMaterialExpression * | CreateNewMaterialExpression
(
UClass* NewExpressionClass, |
Creates a new material expression of the specified class. |
![]() ![]() |
UMaterialExpressionComment * | CreateNewMaterialExpressionComment
(
const FVector2D& NodePos, |
Creates a new material expression comment |
![]() ![]() |
UMaterialExpressionComposite * | CreateNewMaterialExpressionComposite
(
const FVector2D& NodePos, |
Creates a new material expression composite, along with related child pinbase expressions |
![]() ![]() |
void | DeleteNodes
(
const TArray< class UEdGraphNode* >& NodesToDelete |
Delete an array of Material Graph Nodes and their corresponding expressions/comments |
![]() ![]() |
void | Disconnects and removes the selected material graph nodes. | |
![]() |
void | DrawMessages
(
FViewport* Viewport, |
Draws messages on the specified viewport and canvas. |
![]() ![]() |
void | 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, |
Get the visible bounds of the given graph node |
![]() ![]() |
FMaterialRenderProxy * | GetExpressionPreview
(
UMaterialExpression* InExpression |
Gets the preview for an expression |
![]() ![]() |
UMaterialInterface * | The material instance applied to the preview mesh. | |
![]() ![]() ![]() |
int32 | Gets the number of selected nodes | |
![]() ![]() ![]() |
FText | Gets the name of the material or material function that we are editing | |
![]() ![]() ![]() |
TSet< UObject * > | Get the currently selected set of nodes | |
![]() ![]() |
void | JumpToExpression
(
UMaterialExpression* Expression |
Jumps to the node for this expression, if possible |
![]() ![]() |
void | JumpToHyperlink
(
const UObject* ObjectReference |
Jumps to a specific node or graph |
![]() ![]() |
void | Call this to notify the editor that the edited material changed from outside | |
![]() ![]() |
FMaterialEditorClosedEvent & | ||
![]() ![]() |
FRegisterTabSpawnersEvent & | ||
![]() ![]() |
FUnregisterTabSpawnersEvent & | ||
![]() ![]() |
void | PasteNodesHere
(
const FVector2D& Location, |
Paste nodes at a specific location |
![]() ![]() |
void | ||
![]() ![]() |
void | 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 | |
---|---|---|---|
![]() |
FMaterialEditorClosedEvent | Delegate to be called when this IMaterialEditor is about to be destroyed | |
![]() |
FRegisterTabSpawnersEvent | Delegate to be called when the tabs are being registered | |
![]() |
FUnregisterTabSpawnersEvent | Delegate to be called when the tabs are being unregistered |