x


Is it possible to use LoadLevelAsync and then wait?

Hello,

So what I want to do is to load a level in the background. However I don't want the actual switch to happen until I specify. Is this possible? Currently LoadLevelAsync switches as soon as the level has been loaded.

This is for Android/iOS so we're not using streaming.

Thanks.

If you need more info just give me a shout.

more ▼

asked Apr 10 '12 at 03:51 PM

HazeTI gravatar image

HazeTI
346 9 14 17

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

1 answer: sort oldest

no you cannot do it, but since you are obviously using the pro version, what you can do is to create an assetbundle of your scene. In this way you can load the assetbundle asynchronously, then wait, then use Application.LoadLevel (which will be instantaneous because the data is all loaded).

more ▼

answered Apr 10 '12 at 04:03 PM

sebas77 gravatar image

sebas77
257 13 20 29

Yes, this is what I feared. Thanks.

Apr 10 '12 at 04:05 PM HazeTI
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Topics:

x414
x263
x25

asked: Apr 10 '12 at 03:51 PM

Seen: 1401 times

Last Updated: Apr 10 '12 at 04:05 PM