Choose your operating system:
Windows
macOS
Linux
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 SetMaterial
(
int32 ElementIndex,
UMaterialInterface * Material
)
Changes the material applied to an element of the mesh.
the material used by the indexed element of this mesh.
Parameter |
Description |
---|---|
ElementIndex |
The element to access the material of. |