Navigation
API > API/Editor > API/Editor/PropertyEditor
A view of a single item in an FMaterialList
| Name | FMaterialItemView |
| Type | class |
| Header File | /Engine/Source/Editor/PropertyEditor/Public/MaterialList.h |
| Include Path | #include "MaterialList.h" |
Syntax
class FMaterialItemView : public TSharedFromThis< FMaterialItemView >
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FMaterialItemView
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMaterialItemView
(
const FMaterialListItem& InMaterial, |
MaterialList.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FMaterialItemView() |
Virtual destructor | MaterialList.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bShowUsedTextures | bool | Whether it should show textures | MaterialList.h | |
| MaterialItem | FMaterialListItem | The Material item in a material list slot | MaterialList.h | |
| MultipleMaterialCount | int32 | Number of material count | MaterialList.h | |
| OnGenerateCustomMaterialWidgets | FOnGenerateWidgetsForMaterial | Generate custom material widget delegate | MaterialList.h | |
| OnGenerateCustomNameWidgets | FOnGenerateWidgetsForMaterial | Generate custom name delegate | MaterialList.h | |
| OnGenerateExtraBottomWidget | FOnGenerateWidgetsForMaterial | Generate custom widget under the material row delegate | MaterialList.h | |
| OnMaterialChanged | FOnMaterialChanged | Material Changed delegate | MaterialList.h | |
| OnResetToDefaultClicked | FOnResetMaterialToDefaultClicked | Reset to default delegate | MaterialList.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > CreateNameContent() |
Create a Name Content for Material Item Widget | MaterialList.h | |
virtual TSharedRef< SWidget > CreateValueContent
(
IDetailLayoutBuilder& InDetailBuilder, |
Create a Value Content for Material Item Widget | MaterialList.h | |
const FMaterialListItem & GetMaterialListItem() |
Get Material item in a material list slot | MaterialList.h | |
bool GetResetToBaseVisibility() |
Called to get the visibility of the reset to base button | MaterialList.h | |
void OnResetToBaseClicked() |
Called when reset to base is clicked | MaterialList.h | |
void ReplaceMaterial
(
UMaterialInterface* NewMaterial, |
Replace material in slot | MaterialList.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static TSharedRef< FMaterialItemView > Create
(
const FMaterialListItem& Material, |
Creates a new instance of this class | MaterialList.h |