Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Components > API/Runtime/UMG/Components/UWidgetComponent
- UPrimitiveComponent::SetMaterial()
- UMeshComponent::SetMaterial()
- UWidgetComponent::SetMaterial()
References
| Module | UMG |
| Header | /Engine/Source/Runtime/UMG/Public/Components/WidgetComponent.h |
| Include | #include "Components/WidgetComponent.h" |
| Source | /Engine/Source/Runtime/UMG/Private/Components/WidgetComponent.cpp |
virtual void SetMaterial
&40;
int32 ElementIndex,
UMaterialInterface &42; Material
&41;
Remarks
Changes the material applied to an element of the mesh. the material used by the indexed element of this mesh.
Parameters
| Name | Description |
|---|---|
| ElementIndex | The element to access the material of. |