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
&40;
uint32 SlotIndex,
UMaterialInterface &42; Material,
bool bCanBeReplaced,
UActorComponent &42; InCurrentComponent
&41;
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 |