Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Anyone using this to create level chunks for level generation?

Discussion in 'Prefabs' started by Silly_Rollo, Mar 9, 2019.

  1. Silly_Rollo

    Silly_Rollo

    Joined:
    Dec 21, 2012
    Posts:
    501
    I generate levels by combining hand crafted sections. The way I did this before nested prefabs was by leaving my individual elements as their own prefabs (walls, torches, etc), placing the prefabs where I wanted in a scene, and then saved out the positions and prefab differences to a JSON via an editor script.

    This works, but saving tweaked inspector setting has always been a pain. Potentially the new prefab workflow means I could save each chunk as a prefab and stop with the JSON since within the chunk I could maintain references to the original element prefabs.

    Is anyone doing this? Has the system matured enough to make this not completely aggravating? I'm wary of one day opening Unity and finding lots of broken chunks since prefabs used to be a little touchy but the new system does seem robust.
     
  2. runevision

    runevision

    Joined:
    Nov 28, 2007
    Posts:
    1,892
    Yes. This is what nested Prefabs are all about. :)

    There are many studios and people who are using it in production today.