Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMeshComponent
Description
Fill the array with every material slot overlay material use by this instance.
If this component material slot overlay material will be used if not null. If there is no valid component material slot overlay material, the mesh material slot overlay material will be used if not null. If there is no valid asset material slot overlay material, a null entry will be set for the material slot overlay material.
| Name | GetMaterialSlotsOverlayMaterial |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/MeshComponent.h |
| Include Path | #include "Components/MeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/MeshComponent.cpp |
void GetMaterialSlotsOverlayMaterial
(
TArray < TObjectPtr < class UMaterialInterface > > & OutMaterialSlotOverlayMaterials
) const