x


Webplayer loads a scene via JavaScript

Is it possible to make an existing instance of the web-player loads another scene by file-name? Because of scalability issues, I cannot package all the scenes into the webplayer, as there will be new scenes continually added to the application.

more ▼

asked Jan 20 '10 at 08:20 AM

Extrakun gravatar image

Extrakun
1.3k 44 56 70

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

1 answer: sort voted first

Yes, it is possible to download and load new scenes dynamically.

What you need to do is to package your scenes as AssetBundles, download those using the WWW class, and then you can load the levels using Application.LoadLevel/LoadLevelAdditive.

This sample should do what you want.

more ▼

answered Jan 20 '10 at 09:19 AM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

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

asked: Jan 20 '10 at 08:20 AM

Seen: 974 times

Last Updated: Jan 20 '10 at 08:20 AM