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"

[Request] ASync Functions

I think it would be really cool if you could make some kind of LevelLoad ASync, that loads a level and can be used to display progess bars and the like, here is some reference. docs.unity3d.com/Documentation/ScriptReference/Application.LoadLevelAsync.html It would be cool if there was some kind of function like this that could sync with a variable and see what value it had in relation to another specified value, so it could be used to create something like a health bar easily.

Product Version: Not Selected
Tags:
more ▼

asked Mar 11 '14 at 05:26 AM in Everything Else

avatar image

ue4-archive ♦♦ STAFF
49.8k 3656 1981 9108

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi Evan,

Thank you for your patience. I have looked into this question and have found that streaming in sub levels can be done asynchronously using the parameters of a LoadStreamLevel blueprint action.

As for preparing a level in the background, we don’t have anything quite the same as the referenced Unity function in Blueprints, but there is a Game Mode property bUseSeamlessTravel you can set in code. The way that it works is that you can specify a level to use as the TransitionMap (The transition map is specified in EngineSettings.GameMapsSettings). That level is loaded asynchronously, the player and a variety of other actors are moved to it, then the source level is unloaded and garbage collected. We then asynchronously load the destination map and then again move the player and other actors in to it.

I entered a feature request to have Use Seamless Travel exposed to be used in Blueprints in response to your question.

Cheers!

Alexander

more ▼

answered Mar 11 '14 at 05:26 AM

avatar image

ue4-archive ♦♦ STAFF
49.8k 3656 1981 9108

(comments are locked)
10|2000 characters needed characters left
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