How to use viewports in 3.0 to pull up interactive map?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ESN42

I have a scene in which I’ve built an interactive world map. In my game, I want to be able to open this map in a viewport that only covers part of the screen while the rest of the game is still running (this is all 2D). How do I make that happen?

Am I supposed to be using a viewport container? I’ve read some posts that indicate that I should, but I can’t find any documentation on that node.

:bust_in_silhouette: Reply From: Bartosz

You would need to add to your main scene two nodes: Sprite and Viewport, set Sprites texture to vieport texture, add your scene with map as a child of Viewport and make sure sizes of sprite and viewport are correct. you can check out my viewport2d demo