Hello everyone.
I’ve been developing software for quite some time already but I’m just starting with Unity.
To help me get started and learn to use Unity, I’m developing a prototype for a PC top-down game in which my player is walking around in a city block and he can enter buildings, which may have several floors. I though of 3 ways of doing this and was wondering what the veterans here have to say about it. Of course, please feel free to suggest other solutions.
-
Have the buildings and floors on the same scene, away from the action so that they cannot be seen, and move the player and camera accordingly. When a player enters a door (which would have a trigger), I would transport the player to the ground floor and move the camera too. When the player moves up or down the building I would keep moving according. The pros would be that all the assets would be loaded already, removing any loading. The cons would be that the assets would be loaded already (which uses more memory).
-
Have several layers (one for the city, one for the ground floor, one for the first floor, etc.) and show and hide layers. BTW I haven’t managed to hide and show them programmaticaly yet, so I’m not sure if this would be a huge no-no from the start. Pros and cons would be the same as for option 1.
-
Use and load scenes. Pros would be memory usage, cons would be the possibility of having small load hiccups, which I would very much prefer not to have, of course.
Thank you all very much in advance for any light you may cast into this matter.