Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Ingame Scene Creator

Discussion in 'Scripting' started by safak93, Nov 24, 2015.

  1. safak93

    safak93

    Joined:
    Feb 23, 2014
    Posts:
    19
    Hi,

    Is it possible to give an option to the players to create a scene manually with an ingame editor and add it to the scene list(to load them) without losing it if the player updates his game(android, ios)?

    Thanks :)
     
  2. lordofduct

    lordofduct

    Joined:
    Oct 3, 2011
    Posts:
    8,380
    Yes.

    It's not trivial.

    You won't create 'scenes' in the unity editor sense, because those are created at build time. Instead you'd serialize it into your own structure that can be loaded.
     
    Kiwasi and zombiegorilla like this.
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Or take the approach games like Kerball Space Programme uses. Build a quick editor tool that lets users build something in Unity and export it as an asset bundle. Then read the asset bundle into your game. The hard work of building the editor that produces Unity readable assets has been done for you.
     
    solkar likes this.
  4. safak93

    safak93

    Joined:
    Feb 23, 2014
    Posts:
    19
    I thought also about that but I wanted to give them something special without doing it in the Unity-Editor. The ingame-editor won't be big, it's only to "draw"(with prefabs) a track or like drag&drop and the option to make the prefab longer, bigger, smaller, with curves etc.
     
  5. Nigey

    Nigey

    Joined:
    Sep 29, 2013
    Posts:
    1,129
    Could you not create a 'template' level and have the asset data saved somewhere on the device not to do with the update? Then the template level handles all and just instantiates the objects on reading individual JSON files or something? Edited levels would just save to JSON data.

    It'd be slower, but that would work?