Implementing Scene Switching - An Elevator Between Scenes - Part 2 @WorldOfZeroDevelopment
Implementing Scene Switching - An Elevator Between Scenes - Part 2  @WorldOfZeroDevelopment
Uploaded April 2021 | Updated November 2026, 11 hours ago
Continuing our elevator and asynchronous scene management system development let's try to build a 3-scene system that will allow us to create a base scene with the global game objects (our player, scene transition elevator, camera etc) and the two "floors" we'll be transitioning between.

Our goal is to unload the currently loaded floor (if one is loaded) and replace it with the new scene before opening the elevator to reveal the changed scene. If we were to reverse this order or tried to unload and load the scenes simultaneously, we could end up in a situation where both of our playable scenes were loaded at the same time. For a completely static scene this is probably fine, but any dynamic objects like physics, ai etc could potentially attempt to interact with the other scene and cause behavior we don't want.

The flow we're trying to create with this effect should look something like this.

```mermaid
graph LR
B(Try to load First Floor)
C(Close Elevator Door)
D{Is A Floor Loaded Already?}
E(Unload Loaded Floor)
F(Load First Floor)
G(Open Elevator Door)
B--˃C
C--˃D
D-- Yes --˃E
D-- No --˃F
E--˃F
F--˃G
```

***

The [**Elevator Between Scenes** series playlist](youtube.com/playlist?list=PLEwYhelKHmigCVDWNM5--f7PofdkvXbuZ)
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Implementing Scene Switching - An Elevator Between Scenes - Part 2Embedding Shadertoy in Hugo Websites - Custom Hugo ShortcodesExploring MAUI - Multiplatform Apps Built With .NETColor Contrast Shader - Lets Make a Side Scrolling Shooter - Part 3Using AnimatedValues in Custom Unity EditorsI Built a Tool That Turns GitHub Contributions into Bookmarks Heres How It WorksBuilding Markdown Based Powerpoint Presentations with Remark.JSI See Game Objects - Unity Observer - Part 2Inline Initializing C# Dictionaries - Quick TipLive Coding a 3D Voxel Cube in UnitySetting Up A Minecraft ServerCreating our own Dockerized Mindustry Server
World of Zero |

Implementing Scene Switching - An Elevator Between Scenes - Part 2

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER