I want to launch a video to hide loading time when changin level, maybe I did not check at the rigt place but I did not find a lot of ressource in this regard, I’d like to know in what direction I could check
naive me who tought it would be simple, While I did not yet tested it, it seem that it could be indeed the way to go , thanks
Sorry I know its a late response, I just tried it and it don’t work, is it possible it can’t work in a level using World Partition?
I know it does work
World partition is a way of splitting up large levels. No the same thing at all…
To be clear, you would need to play the vid in the persistent level.
And does the persistent level need to encompass the world partition level? I just did a quick test ( Load Stream level from the start) and the game crash
I don’t know off the top of my head, but I think you can’t mix world partition and level streaming. The persistent level is usually totally empty. It’s just holds what you need to get all the other levels streaming.
Sorry im a little confuse , what can I do if I want to have a loading video between two level using world partition like I say from the little I tried it does not seem possible
Did you have a persistent level with the menu and video, and make the WP levels streaming sub levels?
I tried that, but the game keep crashing whenI use load stream level on one of my WP Level
I haven’t done it with WP, so you’ll need to experiment.
It sounds like your persistent is WP? I don’t know if that’s a good or bad thing. You might want to try it and a normal level.
no my persistant is not a WP(we can’t use a WP as a persistant level), the sublevel are
I’m reading a bit more about it, I really don’t know if WP and streaming are compatible.
I think ‘data layers’ is the replacement for streaming with WP. I have never used them, but it looks like you never switch maps, just layers.
Even if you really had to switch maps, as far as I understand, you can set your new WP map to load empty, and then populate it with layers under blueprint control, while the vid is playing.
What @ClockworkOcean is suggesting is a very interesting idea. I wasn’t aware of this until now.
I claim, in essence, the proposal is to create a widget which covers the entire screen of the game to hide all of the loading going on. The contents of the widget are whatever you want (a video, text, blackness, etc.). You need to load this widget prior to the game activities start happening and to unload the widget when everything is done/stable.
Loading a new streaming level which, in essence, loads the loading widget is one way to accomplish the when to load and unload the loading widget. Might be the best way… …I don’t know.
What I did was I created a “cutscene” widget and I called this from my first person character event begin play. While this “works”, I still have a brief and noticeable gap between my game lobby transition level and my first person character loading which, in turn, starts my loading cutscene.
Thus, my helpful tip is to NOT do this. Thus, I recommend following the @ClockworkOcean recommendation since this method should pop the loading widget almost as soon as this new level is loaded.
OK! Implemented this recommendation and it works much better than my first person character event begin play. If you are OCD, I am still experience gap between my lobby and the game.
Regardless, if you are working in multiplayer, I experienced an issue with RemoveFromParent and UnloadStreamLevel(by Name). I had to add a 1 sec delay between these two or the clients wouldn’t remove the widget from the viewport. The default 0.2 second delay was not good enough. Tested with 4 players (3 clients).
I am working in 4.26.2.
My LoadSplashScreen looks as follows:
I appreciate the help but this solution won’t work because I’m using world partition levels
Possible… …I think the spirit of the solution is to find something which loads soon after you transition to the new, or next, level.
Then, when that happens add a loading widget to the viewport that blocks everything, wait some amount of time (or do useful work) and then remove that widget from the viewport when loading, or whatever you want to hide, is complete.