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"

How to check if Level Instances have finished loading?

Hello I'm learning how to procedurally generate a level using instanced level streaming.

My question is how to check if the level instance has finished loading?

I want to make a simple loading screen, so before the level loads the game checks if the level is loaded.

Below is a snippet of the generation script, tell me if more info on the blueprint is needed I'll post them as soon as possible. Blueprint for the Generation

Product Version: UE 4.12
Tags:
more ▼

asked Aug 11 '16 at 09:32 AM in Blueprint Scripting

avatar image

Zellith
11 4 6 9

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

2 answers: sort voted first

Polling is a good solution, as lackthereof0 has suggested. Another solution is to use the OnLevelLoaded and/or OnLevelShown events, like this:

alt text

levelevent.jpg (74.8 kB)
more ▼

answered Aug 31 '16 at 11:19 PM

avatar image

sranck
301 6 6 18

avatar image dec_tamas Apr 17 '18 at 06:53 PM

This is definitely the way to go! Thanks .. now I just have to figure out why this event is not firing for me. :) EDIT: (never mind, I subscribed to the event after I started to load the level)

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

Hi Zellith,

This is what I did. I made a Macro (which is like a function but can handle delays and multiple exec outputs) which periodically checks if the level is loaded. The functions you want is "Get Streaming Level" to get a level by name, then "Is Level Loaded" to check if it's loaded.

Wait Until Level Loaded macro

I hope that helps!

levelstreaming.jpg (139.2 kB)
more ▼

answered Aug 31 '16 at 06:07 PM

avatar image

lackthereof0
277 11 24 27

avatar image amizan8653 Jan 18 '18 at 06:46 PM

lackthereof0, thank you so much!

(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