Parsing widget from bp as TSharedPtr

Passing in a UUserWidget* and using TakeWidget(); solved this for me :slight_smile:

void UStaticBPLibrary::ShowLoadingScreen(UUserWidget* inWidget)
{
	FLoadingScreenAttributes LoadingScreen;
	TSharedPtr<SWidget> WidgetPtr = inWidget->TakeWidget();
	LoadingScreen.WidgetLoadingScreen = WidgetPtr;
	GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
}
1 Like