x


Webplayer hangs on loading scene

The first scene in my game loads fine every time but sometimes the second scene (the level select) hangs and never completes loading. It also sometimes causes the browser to exit or crash. I've tried loading different scenes but the problem remains - the first scene loads, the next scene sometimes hangs. What's causing this? You can try it yourself here:

Surveillant - Web version

more ▼

asked May 27 '11 at 08:45 AM

Recluse gravatar image

Recluse
31 10 10 12

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

2 answers: sort voted first

I get this in my log when I play your game:

Level 'LevelSelect' (6) couldn't be loaded because it has not been streamed in yet.
You need to ensure that levels which have not been streamed in yet are not loaded.

Should give you a pretty clear idea what is going wrong. The logs are fantastic at helping you figure out what is going wrong

(See http://unity3d.com/support/documentation/ScriptReference/Application.CanStreamedLevelBeLoaded.html if you need help.)

more ▼

answered May 27 '11 at 10:14 AM

Graham Dunnett gravatar image

Graham Dunnett ♦♦
11.9k 11 20 65

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

Thanks Graham, that's really helpful to know and seems to have fixed the problem.

more ▼

answered May 27 '11 at 02:50 PM

Recluse gravatar image

Recluse
31 10 10 12

(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:

x815
x719
x592
x298
x29

asked: May 27 '11 at 08:45 AM

Seen: 1371 times

Last Updated: May 27 '11 at 02:50 PM