in bp class
class MATTHIOLA_API UAVGBlueprintFunctionLibrary : public UBlueprintFunctionLibrary
bool UAVGBlueprintFunctionLibrary::MakeProgressLoadLevel()
{
IStreamingManager::Get().StreamAllResources(10.0f);
FLoadingScreenAttributes LoadingScreen;
//LoadingScreen.bAutoCompleteWhenLoadingCompletes = true;
//LoadingScreen.WidgetLoadingScreen = FLoadingScreenAttributes::NewTestLoadingScreenWidget(); // <-- test screen that comes with UE
LoadingScreen.bAutoCompleteWhenLoadingCompletes = false;
LoadingScreen.bMoviesAreSkippable = true;
LoadingScreen.MoviePaths.Add(TEXT("ggg"));
GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
GetMoviePlayer()->PlayMovie();
return true;
}
but it didn’t work
and I try this
bool UAVGBlueprintFunctionLibrary::MakeProgressLoadLevel()
{
IStreamingManager::Get().StreamAllResources(10.0f);
FLoadingScreenAttributes LoadingScreen;
LoadingScreen.bAutoCompleteWhenLoadingCompletes = true;
LoadingScreen.WidgetLoadingScreen = FLoadingScreenAttributes::NewTestLoadingScreenWidget(); // <-- test screen that comes with UE
//LoadingScreen.bAutoCompleteWhenLoadingCompletes = false;
//LoadingScreen.bMoviesAreSkippable = true;
//LoadingScreen.MoviePaths.Add(TEXT("ggg"));
GetMoviePlayer()->SetupLoadingScreen(LoadingScreen);
GetMoviePlayer()->PlayMovie();
return true;
}
can not work.
This is my BP, I call this function in widget’s event graph.
I use UE 4.8.2 anyone help?