UMaterialBillboardComponent::SetMaterial

Changes the material applied to an element of the mesh.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UPrimitiveComponent::SetMaterial()

UMaterialBillboardComponent::SetMaterial()

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/MaterialBillboardComponent.h

Include

#include "Components/MaterialBillboardComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/MaterialBillboardComponent.cpp

Syntax

virtual void SetMaterial
(
    int32 ElementIndex,
    class UMaterialInterface * Material
)

Remarks

Changes the material applied to an element of the mesh.

Returns

the material used by the indexed element of this mesh.

Parameters

Parameter

Description

ElementIndex

The element to access the material of.