UE5.4 using userwidget for gamemovieplayer ,just black screen
void UMyGameinstance::StartInGameLoadingScreen(bool bPlayUntilStopped/**true*/, float PlayTime/**3.f*/)
{
LoadScreenWidget = CreateWidget<UTDLoadScreenWidget>(this, LoadScreenClass.Get());
if (LoadScreenWidget)
{
FLoadingScreenAttributes LoadingScreen;
LoadingScreen.bAutoCompleteWhenLoadingCompletes = !bPlayUntilStopped;
LoadingScreen.bWaitForManualStop = bPlayUntilStopped;
LoadingScreen.bAllowEngineTick = bPlayUntilStopped;
LoadingScreen.MinimumLoadingScreenDisplayTime = PlayTime;
TSharedPtr<SWidget> WidgetPtr = LoadScreenWidget->TakeWidget();
LoadingScreen.WidgetLoadingScreen = WidgetPtr;
GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
}
}
}