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

Loading new levels

Discussion in 'Scripting' started by heemun, Nov 23, 2014.

  1. heemun

    heemun

    Joined:
    Apr 15, 2014
    Posts:
    18
    Hello.

    I'm creating a MMO game with several locations (about 15 explore locations and 5 battle locations).

    How should i load a new location? I see 2 ways.
    1. For every location i create a scene and use LoadLevel to load these location.
    2. In the main scene i have all locations, but only current location is active, the others are inactive. If i want to move to other location i deactivate current location and activate the one where i should be teleported.

    Which way is better? Perhaps there are some advantages/disadvantages in any of these ways?
    Please, give me an advice what's better.
     
  2. MakeCodeNow

    MakeCodeNow

    Joined:
    Feb 14, 2014
    Posts:
    1,246
    #1 will take less memory than #2. You can also look into something like LoadLevelAdditive, or my product SECTR STREAM that provides tools for creating and loading scene data like this.