x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Rendering Loading Screen

Hello, I know there are many other topics on this, however I am still confused.

I have my Loading Screen Widget and Animation created, however, how can I initialize the loading screen and loop the animation while the level is loading, and then wipe the hud?

I also have a start menu, which when "play" is clicked, it loads the next level then wipes the hud.

I would also like to know where to put the Blueprints in (The Level Blueprint, the Loading Screen BP, the Start menu BP).

Product Version: Not Selected
Tags:
more ▼

asked Jan 24 '15 at 06:42 PM in Blueprint Scripting

avatar image

tryMichal
1 1 4 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hey,

I don't know if this is really the best approach but this is how I approached it so far.

First I used the GameState Class as Base for my Blueprint and attached it to the Game Mode I am using as standard.

Than I create an ENUM with all the States that are possible in my Game. The Game State than decides upon calling what controls to activate and most importantly in your case, what Widgets to add to the Viewport. Since this is still a prototype, the Game State will set on the beginning of play to the State Loading.

Now you can call different States depending what your Game requires and when it State Loading it will automatically display your loading screen.

Now from a functionality point of view, it really depends what you want to load and incorporate the necessary checks that when loading is done, it goes back to a default or in-progress State.

alt text

alt text

alt text

more ▼

answered Jan 24 '15 at 06:55 PM

avatar image

Martin Egger
388 17 10 29

avatar image tryMichal Jan 24 '15 at 07:13 PM

I will try it, and get back to you if it works.

avatar image Martin Egger Jan 24 '15 at 07:18 PM

Great, let me know if you need any help, certainly my implementation is a bit more extensive so if you just need something working for quick iteration, you simply load your Widget when the Level opens and than let HUD Widgets load after a delay and Remove from Parent the Load Widget.

When loading a new level you first again use the same approach as it parents the Load widget and than reloads the HUD Widgets. You could though do of course some checks for the HUD like saying if its already loaded during the initialized Load, that it will be removed and re-added to the viewport.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

As of UE 4.6.1 you cannot use animated UMG widgets while a new level is being loaded. UMG is not updated during level loading. You can only use the underlying Slate system from C++ by starting a "Movie Player".

See also: https://answers.unrealengine.com/questions/38017/how-can-i-make-a-loading-screen.html

Marc

more ▼

answered Feb 03 '15 at 11:02 AM

avatar image

mkamradt
294 15 136 34

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question