Navigation
API > API/Developer > API/Developer/DatasmithFacade > API/Developer/DatasmithFacade/FDatasmithFacadeScene
Description
Returns a new FDatasmithFacadeBaseMaterial pointing to the Material at the specified index. If the given index is invalid, the returned value is nullptr.
| Name | GetNewMaterial |
| Type | function |
| Header File | /Engine/Source/Developer/Datasmith/DatasmithFacade/Public/DatasmithFacadeScene.h |
| Include Path | #include "DatasmithFacadeScene.h" |
| Source | /Engine/Source/Developer/Datasmith/DatasmithFacade/Private/DatasmithFacadeScene.cpp |
FDatasmithFacadeBaseMaterial * GetNewMaterial
(
int32 MaterialIndex
)
Parameters
| Name | Remarks |
|---|---|
| MaterialIndex | The index of the material in the scene. |