UMeshComponent::GetUsedMaterials

Retrieves the materials used in this component

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

Engine

Header

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

Include

#include "Components/MeshComponent.h"

Source

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

Syntax

virtual void GetUsedMaterials
(
    TArray< UMaterialInterface * > & OutMaterials,
    bool bGetDebugMaterials
) const

Remarks

Retrieves the materials used in this component

Parameters

Parameter

Description

OutMaterials

The list of used materials.