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.