UDatasmithMeshElement::SetMaterial

Set the material name to associate with slot SlotId

Windows
MacOS
Linux

References

Module

DatasmithImporter

Header

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Public/ObjectElements/DatasmithUObjectElements.h

Include

#include "ObjectElements/DatasmithUObjectElements.h"

Source

/Engine/Plugins/Enterprise/DatasmithImporter/Source/DatasmithImporter/Private/ObjectElements/DatasmithUObjectElements.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="Datasmith | Element")
void SetMaterial
(
    const FString & MaterialName,
    int32 SlotId
)

Remarks

Set the material name to associate with slot SlotId

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