Language:
Discover
By Skill Level
By Category

UPrimitiveComponent::GetMaterial

Choose your OS:

Override Hierarchy

Syntax

virtual UMaterialInterface * GetMaterial
(
    int32 ElementIndex
)

Remarks

Returns the material used by the element at the specified index

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/PrimitiveComponent.h

Source

Runtime/Engine/Private/Components/PrimitiveComponent.cpp