- Home /
How to create/edit a scene/level from inside the game?
I want to make levels from inside the game, and not make them in unity and add them to game so that players can make their own levels and publish.
My game contains just some boxes and a plane so I want the players to be able to just place the boxes at some positions and save it like a level.
I think i can make a level-editor kind of thing so that they can just drop those objects but how actually they can be made as a level.scene?
Is it even possible?
If yes can someone please tell me how to do it? or at least a link/url where i can find how to do it?
It's a little complex. You need to create some classes to hold your editor player's level data and you need to instantiate these data when it is necessary (level/Object load), and so on. There ways to create an entire scene file (but you can create limitations) from a in-game level editor.
If your new to unity I wouldn't try it but you have the entire data base of C#, Java script and Boo. I cant show you the script as I have not attempted it my self but you might have to create a lot of empty scenes and write a GUI script to instantiate different objects. But there are probably ways to create and name new scenes via script.
Your answer
Follow this Question
Related Questions
Script Help Scene Complete Level 1 Answer
How to keep count of enemies left 2 Answers
Load Scene 1 Answer
How to load enemies according to enemy list? 1 Answer
Playing music while scenes change? 4 Answers