FDatasmithActorImporter::OverrideStaticMeshActorMaterials

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 OverrideStaticMeshActorMaterials
(
    const FDatasmithImportContext & ImportContext,
    const TSharedRef< IDatasmithMeshActorElement > & MeshActorElement,
    const UStaticMesh * StaticMesh,
    UDatasmithStaticMeshComponentTemplate * StaticMeshComponentTemplate
)

Remarks

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