Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components > UWidgetComponent
- UPrimitiveComponent::GetMaterial()
- UMeshComponent::GetMaterial()
- UWidgetComponent::GetMaterial()
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 UMaterialInterface &42; GetMaterial
&40;
int32 ElementIndex
&41; const
Remarks
Returns the material used by the element at the specified index the material used by the indexed element of this mesh.
Parameters
Name | Description |
---|---|
ElementIndex | The element to access the material of. |