- Home /
Question by
Long2904 · Nov 10, 2019 at 09:00 AM ·
unity 2dlevelslevel loadlevel editor
How to generate levels in unity from ogmo editor?
So currently i have been using ogmo editor 2 and i found a post how to parse ogmo file to unity https://forums.tigsource.com/index.php?topic=33205.msg883702#msg883702 and it said used these lines of code :
string levelFolder = "Levels";
Object[] rooms = Resources.LoadAll(levelFolder + "/Generated Assets", typeof(TextAsset));
List<OgmoLevel> levels = new List<OgmoLevel>();
for (int ii = 0; ii < rooms.Length; ii++)
{
levels.Add(new OgmoLevel(rooms[ii] as TextAsset));
}
but i still don't know how to actually generate a level from this bitstring fille (i export the ogmo level file to bitstring). Do i have to create a script that contain different prefabs for each different entities and how can i do that?
Comment
Your answer
Follow this Question
Related Questions
How to manage multiple levels in the 2D game ? 3 Answers
Save quantities 1 Answer
Problems with unlocking levels 1 Answer
How to get Buildbox Set Up in Unity 2D 0 Answers
How can I get level's bounds (top, bottom, left, right, front, back)? 0 Answers