UMeshComponent::SetMaterial

Override Hierarchy

Syntax

virtual void SetMaterial
(
    int32 ElementIndex,
    UMaterialInterface * Material
)

Remarks

Changes the material applied to an element of the mesh.

the material used by the indexed element of this mesh.

Returns

the material used by the indexed element of this mesh.

Parameters

Parameter

Description

ElementIndex

The element to access the material of.

References

Module

Engine

Header

Runtime/Engine/Classes/Components/MeshComponent.h

Source

Runtime/Engine/Private/Components/MeshComponent.cpp