Navigation
API > API/Runtime > API/Runtime/DatasmithCore > API/Runtime/DatasmithCore/IDatasmithMeshActorElement > API/Runtime/DatasmithCore/IDatasmithMeshActorElement/AddMaterialOverride
References
| Module | DatasmithCore |
| Header | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/IDatasmithSceneElements.h |
| Include | #include "IDatasmithSceneElements.h" |
void AddMaterialOverride
(
const TCHAR * MaterialName,
int32 Id
)
Remarks
Adds a new material override to the Actor Element
Parameters
| Name | Description |
|---|---|
| MaterialName | name of the material, it should be unique |
| Id | material identifier to be used with mesh sub-material indices. Use -1 to override all material slots. |