What You’ll Learn in This Hour:
• Viewport and it use cases
• Managing your rendering through Canvas Layers
• Mixing 2D and 3D scenes
• Adding a split-screen feature to a game
In this hour, we start playing with viewports. So far, we talked a lot about how to assemble different nodes types into a Scene Tree that represent our world. However, given we are not building a weather forecast simulation, we want to render things by displaying images on the user’s screen. This is what the viewport is about: opening a window into our world to the user.
While this seems a very generic role, this also means viewports allow us to implement a wide range of features:
• Create advanced GUI
• Mix multiple scenes into one
• Take ...