Error: none of the 5 overloads could convert all the argument types

Using this code:
UUserWidget* Menu = CreateWidget(this, MenuClass);

I received this error:

Severity Code Description Project File Line Suppression State
Error C2665 ‘UUserWidget::CreateWidgetInstance’: none of the 5 overloads could convert all the argument types PuzzlePlatforms C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\UMG\Public\Blueprint\UserWidget.h 1473

However switching to this:
UUserWidget* Menu = CreateWidget(GetWorld(), MenuClass);
It worked, unsure why or where I went wrong. I checked this several times. Using 4.26. Perhaps there as a change?

1 Like

Privacy & Terms