Navigation
API > API/Editor > API/Editor/PropertyEditor > API/Editor/PropertyEditor/IMaterialListBuilder
References
| Module | PropertyEditor |
| Header | /Engine/Source/Editor/PropertyEditor/Public/MaterialList.h |
| Include | #include "MaterialList.h" |
void AddMaterial
(
uint32 SlotIndex,
UMaterialInterface * Material,
bool bCanBeReplaced,
UActorComponent * InCurrentComponent,
FName SlotName
)
Remarks
Adds a new material to the list
Parameters
| Name | Description |
|---|---|
| SlotIndex | The slot (usually mesh element index) where the material is located on the component. |
| Material | The material being used. |
| bCanBeReplced | Whether or not the material can be replaced by a user. |
| InCurrentComponent | The current component using the current material |