Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMeshComponent
Description
Get the overlay material used by this instance. If GetMaterialSlot is enabled, the relative slot material is returned.
| Name | GetOverlayMaterial |
| 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 |
UFUNCTION (BlueprintCallable, Category="Rendering|Material")
UMaterialInterface * GetOverlayMaterial
(
bool bGetMaterialSlot,
int32 SlotIndex
) const