IDatasmithScene::AddMaterial

Adds a new Material to the scene (it won't be applied to any mesh).

Choose your operating system:

Windows

macOS

Linux

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/IDatasmithSceneElements.h

Include

#include "IDatasmithSceneElements.h"

Syntax

void AddMaterial
(
    const TSharedPtr< IDatasmithBaseMaterialElement > & InMaterial
)

Remarks

Adds a new Material to the scene (it won't be applied to any mesh).

Parameters

Parameter

Description

InMaterial

the Material that will be added