/Engine/Source/Runtime/UMG/Public/Components/WidgetComponent.h
Returns the dynamic material instance used to render the user widget
[UMaterialInstanceDynamic](API\Runtime\Engine\Materials\UMaterialInstanceDynamic) * GetMaterialInstance() const