3 ms·
Can Scenes be stitched together? Say I wanted to keep loading open world tiles as my character walked a long distance.
by Waterluvian 6y ago
Can Scenes be stitched together? Say I wanted to keep loading open world tiles as my character walked a long distance.
- offtop5 6y agohttps://docs.unity3d.com/ScriptReference/SceneManagement.LoadSceneMode.Additive.html https://docs.unity3d.com/ScriptReference/SceneManagement.Loa... Sure , you can add more scenes . I've never done it to create terrain though. Another trick is to not destroy certain game objects on load.
- klodolph 6y agohttps://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.LoadScene.html https://docs.unity3d.com/ScriptReference/SceneManagement.Sce... See “mode” parameter—additive. This doesn’t answer how you unload.
- PudgePacket 6y agoYes, multiple scenes are common practise. Using it to stitch game worlds is not common though. Most terrain systems would have their own, more optimal/efficient ways of doing that. https://docs.unity3d.com/ScriptReference/SceneManagement.LoadSceneMode.Additive.html https://docs.unity3d.com/ScriptReference/SceneManagement.Loa... https://gamedevacademy.org/a-guide-to-handling-huge-worlds-in-unity-part-2/ https://gamedevacademy.org/a-guide-to-handling-huge-worlds-i...
- Eyas 6y agoThat might be true for for some terrain systems, but AFAICT it is still common for other objects (e.g. units, buildings, etc.) to be loaded like that.
- gamblor956 6y agoYes, in 2020 Unity introduced the concept of "SubScenes" which allow for large worlds (i.e., MMO-style loading).
- learc83 6y agoSubscenes are still in the preview stage, and they recently even removed the ECS stuff from the package manager listings (you have to find the names of the packages directly from the forums) to prevent people from thinking that they were production ready. I was using the ECS for the last 2 years, and I wouldn't recommend it to anyone who actually wants to get something into production. My guess is it will be somewhere late 2021 or 2022 before it's actually production ready.