FDatasmithActorImporter::OverrideStaticMeshActorMaterial

Sets the materials on a static mesh actor to override the ones from the static mesh

Choose your operating system:

Windows

macOS

Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/DatasmithActorImporter.h

Include

#include "DatasmithActorImporter.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/DatasmithActorImporter.cpp

Syntax

static void OverrideStaticMeshActorMaterial
(
    const FDatasmithImportContext & ImportContext,
    const TSharedRef< IDatasmithMaterialIDElement > & SubMaterial,
    UDatasmithStaticMeshComponentTemplate * StaticMeshComponentTemplate,
    int32 MeshSubMaterialIdx
)

Remarks

Sets the materials on a static mesh actor to override the ones from the static mesh