x


With multiple levels in my web game, how do I stream each scene so they download in the background as the user plays?

Hi, i know i am new to unity and thats why i have this question right now.

I have five scenes in my game. 5 scenes i want it to be deployed for the browser game. i want it to be streamed one like if the first scene is running unity keeps on loading other scenes in background and when user progresses through the game he gets the next level with minimum wait time. My game Compresses to around 25 MB [need to compress more i know] and the main scene take 15 MB of the whole percentage.

QUESTION: Please tell me someone How do i achieve this. I have heard about unity asset bundles but cant understand the thing.. Please explain me in some easy terms.

Thankss!!!!!!!!

more ▼

asked May 10 '10 at 05:29 AM

Rakesh Jha gravatar image

Rakesh Jha
61 7 9 14

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

1 answer: sort voted first

You don't need to use Asset Bundles to achieve this, you simply need to structure your scenes so that they stream in the correct order. Asset Bundles serve a different purpose (they allow you to load any combination of additional assets in any order at runtime, wheras scene/level streaming simply streams each whole scene one after the other, in the order you specify).

Start with a small loader scene, followed by your menu / options / instructions scene. You can then arrange the scenes in-order so that your levels stream one after the other. The trick is to try and ensure that the user isn't likely to finish the current scene before the next scene has finished downloading on an average-speed internet connection.

If your first main gameplay scene is 15MB, you will probably need to do some filesize optimisation, or add some kind of compelling pre-game action or animation to cover this delay, because even on a typical fast home internet connection (around 5 megabits/sec at the present) this is still going to take about 30 seconds. Many users will have slower connections.

There is an excellent page which describes the technicalities in the manual, here:
Web Player Streaming

more ▼

answered May 10 '10 at 08:52 AM

duck gravatar image

duck ♦♦
41k 92 148 415

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

x718
x322
x212
x96
x38

asked: May 10 '10 at 05:29 AM

Seen: 2427 times

Last Updated: May 10 '10 at 08:55 AM