Hi. I want to show animated loading screen. Then I found loading screen tutorial and I try it. But it is not working can’t.
I edit my game Instance and set it to project setting’s instance. I checked break point is work. But it is not show anything. What am I miss?
Here is the my code and screen shot.
#include “GameInstanceEx.h”
#include “MoviePlayer.h”
void UGameInstanceEx::Init()
{
Super::Init();
FCoreUObjectDelegates::PreLoadMap.AddUObject(this, &UGameInstanceEx::BeginLoadingScreen);
FCoreUObjectDelegates::PostLoadMapWithWorld.AddUObject(this, &UGameInstanceEx::EndLoadingScreen);
}
void UGameInstanceEx::BeginLoadingScreen(const FString& in_levelName)
{
FLoadingScreenAttributes LoadingScreen;
LoadingScreen.bAutoCompleteWhenLoadingCompletes = true;
LoadingScreen.MoviePaths.Add(TEXT(“/Game/Movies/LoadingMovie.LoadingMovie”));
LoadingScreen.WidgetLoadingScreen = FLoadingScreenAttributes::NewTestLoadingScreenWidget();
GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
}
void UGameInstanceEx::EndLoadingScreen(UWorld* in_loadedWorld)
{
}
237911-