Navigation
API > API/Editor > API/Editor/MaterialEditor
Material editor module interface
| Name | IMaterialEditorModule |
| Type | class |
| Header File | /Engine/Source/Editor/MaterialEditor/Public/MaterialEditorModule.h |
| Include Path | #include "MaterialEditorModule.h" |
Syntax
class IMaterialEditorModule :
public IModuleInterface,
public IHasMenuExtensibility,
public IHasToolBarExtensibility
Implements Interfaces
Classes
| Name | Remarks |
|---|---|
| FMaterialEditorOpenedEvent | Delegate to be called when a Material Editor is created, for toolbar, tab, and menu extension |
| FMaterialFunctionEditorOpenedEvent | Delegate to be called when a Material Function Editor is created, for toolbar, tab, and menu extension |
| FMaterialInstanceEditorOpenedEvent | Delegate to be called when a Material Instance Editor is created, for toolbar, tab, and menu extension |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FMaterialMenuExtender | TBaseDelegate_OneParam< TSharedRef< FExtender >, const TSharedRef< FUICommandList > > | Delegates to be called to extend the material menus | MaterialEditorModule.h |
| FMaterialMenuExtender_MaterialInterface | TBaseDelegate_OneParam< TSharedRef< FExtender >, const UMaterialInterface * > | MaterialEditorModule.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaterialCanvasMenuExtenders | TArray< FMaterialMenuExtender > | All extender delegates for the material menus | MaterialEditorModule.h | |
| MaterialEditorOpenedEvent | FMaterialEditorOpenedEvent | MaterialEditorModule.h | ||
| MaterialFunctionEditorOpenedEvent | FMaterialFunctionEditorOpenedEvent | MaterialEditorModule.h | ||
| MaterialInheritanceMenuExtenders | TArray< FMaterialMenuExtender_MaterialInterface > | MaterialEditorModule.h | ||
| MaterialInstanceEditorOpenedEvent | FMaterialInstanceEditorOpenedEvent | MaterialEditorModule.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< IMaterialEditor > CreateMaterialEditor
(
const EToolkitMode::Type Mode, |
Creates a new material editor, either for a material or a material function | MaterialEditorModule.h | |
TSharedRef< IMaterialEditor > CreateMaterialEditor
(
const EToolkitMode::Type Mode, |
MaterialEditorModule.h | ||
TSharedRef< IMaterialEditor > CreateMaterialInstanceEditor
(
const EToolkitMode::Type Mode, |
MaterialEditorModule.h | ||
TSharedRef< IMaterialEditor > CreateMaterialInstanceEditor
(
const EToolkitMode::Type Mode, |
MaterialEditorModule.h | ||
virtual TArray< FMaterialMenuExtender > & GetAllMaterialCanvasMenuExtenders() |
MaterialEditorModule.h | ||
virtual TArray< FMaterialMenuExtender_MaterialInterface > & GetAllMaterialDragDropContextMenuExtenders() |
MaterialEditorModule.h | ||
void GetVisibleMaterialParameters
(
const UMaterial* Material, |
Retrieves all visible parameters within the material. | MaterialEditorModule.h | |
virtual FMaterialEditorOpenedEvent & OnMaterialEditorOpened() |
MaterialEditorModule.h | ||
virtual FMaterialFunctionEditorOpenedEvent & OnMaterialFunctionEditorOpened() |
MaterialEditorModule.h | ||
virtual FMaterialInstanceEditorOpenedEvent & OnMaterialInstanceEditorOpened() |
MaterialEditorModule.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static IMaterialEditorModule & Get () |
Singleton-like access to this module's interface. | MaterialEditorModule.h |