Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMeshComponent
Description
Change the overlay material used by this instance. If SetMaterialSlot is enabled, the relative slot material is changed.
| Name | SetOverlayMaterial |
| 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")
void SetOverlayMaterial
(
class UMaterialInterface * NewOverlayMaterial,
bool bSetMaterialSlot,
int32 SlotIndex
)