IMaterialListBuilder::AddMaterial

Adds a new material to the list

Windows
MacOS
Linux

References

Module

PropertyEditor

Header

/Engine/Source/Editor/PropertyEditor/Public/MaterialList.h

Include

#include "MaterialList.h"

Syntax

void AddMaterial
(
    uint32 SlotIndex,
    UMaterialInterface * Material,
    bool bCanBeReplaced
)

Remarks

Adds a new material to the list

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss