FDatasmithImporterUtils::GetOrderedListOfMaterialsReferencedByMaterials

Finds all materials that are referenced by other materials in the scene and returns a list ordered by dependencies, making sure that materials referencing other materials in the list will come after.

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/Utility/DatasmithImporterUtils.h

Include

#include "Utility/DatasmithImporterUtils.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/Utility/DatasmithImporterUtils.cpp

Syntax

static TArray< FFunctionAndMaterialsThatUseIt > GetOrderedListOfMaterialsReferencedByMaterials
(
    TSharedPtr< IDatasmithScene > & SceneElement
)

Remarks

Finds all materials that are referenced by other materials in the scene and returns a list ordered by dependencies, making sure that materials referencing other materials in the list will come after. The list also include the direct parents (materials or functions) that are using the functions.

Parameters

Parameter

Description

SceneElement

DatasmithScene holding the materials.

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