Choose your operating system:
Windows
macOS
Linux
| UPrimitiveComponent::SetMaterialByName()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Components/MeshComponent.h |
Include |
#include "Components/MeshComponent.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Components/MeshComponent.cpp |
virtual void SetMaterialByName
(
FName MaterialSlotName,
class UMaterialInterface * Material
)
Changes the material applied to an element of the mesh.
the material used by the indexed element of this mesh.
Parameter |
Description |
---|---|
MaterialSlotName |
The slot name to access the material of. |