FStaticMeshAdapter::AddMaterial

Adds a new material to the underlying asset/data and specify the slot names

Unreal Engine C++ API Reference > Developer > MeshMergeUtilities > FStaticMeshAdapter > AddMaterial

References

   
Module MeshMergeUtilities
Header /Engine/Source/Developer/MeshMergeUtilities/Public/StaticMeshAdapter.h
Include #include "StaticMeshAdapter.h"
Source /Engine/Source/Developer/MeshMergeUtilities/Private/StaticMeshAdapter.cpp
virtual int32 AddMaterial
(
    [UMaterialInterface](API\Runtime\Engine\Materials\UMaterialInterface) * Material,
    const [FName](API\Runtime\Core\UObject\FName) & SlotName,
    const [FName](API\Runtime\Core\UObject\FName) & ImportedSlotName
)

Remarks

Adds a new material to the underlying asset/data and specify the slot names


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library