- Home /
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.
Answer by jonas-echterhoff · Jan 20, 2010 at 09:19 AM
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.
Your answer

Follow this Question
Related Questions
Problem in changing texture using javascript 0 Answers
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
admob in webplayer? 1 Answer
How to load lightmap in the webplayer 0 Answers
Chrome Web Store , Google Wallet InApp Payment (JWT ??) 1 Answer