I am trying to set up a minimap in a 2D game. To do this, I have a
Map scene which has the following structure:
MapViewport size is set to 64x64 and my
Camera2D is set to current. The
Sprite node is empty.
What I intend to do was to draw the
Viewport's texture to the
This is the technique recommended in Chapter 21 of Godot Game Engine Development in 24 Hours.
When I add the
Map as a child of my
Level, it works as expected. I see a 64x64 section of the
GridContainer. But when I place the map in my HUD, which is a
CanvasLayer, I see the entire
Why is this?