A viewport created using the "Add User Interface → Viewport (2D)" menu item has, by default, Viewport.Camera.Orthographic.Origin
set as (0.5,0.5)
. This means that the camera position determines what is visible in the middle of the viewport. In effect, when Camera.Translation
is (0, 0, 0)
, the middle of the viewport will show the things at position (0, 0, 0)
in your world. This is most comfortable if you place your assets around the (0, 0, 0)
point.
You can change Viewport.Camera.Orthographic.Origin
to whatever makes sense for your game. For example, Viewport.Camera.Orthographic.Origin
equal to (0, 0)
means that the camera position determines what is visible at the left-bottom viewport corner. So when camera position is (0, 0, 0)
the left-bottom viewport corner will show the things at position (0, 0, 0)
in your world.