- Home /
is possible to load a scene from external file ?
I'm an unity free user. I'm looking for a way (if any) to load an external level (scene. For example Level1.unity) without using assetsbundle (that needs unity pro). Is possible to pass an external scene to Application.LoadLevel() ? I mean, loading the scene file with a file.io or with a WWW, and then pass that to LoadLevel function.
Many thanks
I'm in the same situation. I was thinking on passing a string then parse the content to some prefabs...
that's all I have...
Building the string is the hard part I guess...
Answer by rutter · Aug 30, 2014 at 04:59 AM
Short answer: there's no built-in support for that, no.
However, if you're willing to do a bunch of programming, you can set up a system that will build a scene on the fly, according to some information you provide. Maybe you could hook up an XML or JSON serialization library, and spawn a bunch of prefabs by name, rotation, scale, and so on.
That's a lot of work, especially if your scenes are complex, but that's your option.
I wouldn't be surprised if there are plugins out there aimed at helping with this problem.
Your answer
Follow this Question
Related Questions
How to set a game-over scene when an object hits another? 0 Answers
Allow userto load custom unity levels/scenes. 2 Answers
Enter next level 1 Answer
How the scene works 1 Answer
Multiple Instances of My Current Scene? 0 Answers