Center the default viewport

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

Situation: We have the scene of an object such as a spaceship, with the root node at 0.0.

Problem: When playing the scene, to test, the default viewport will make the ship appear in the upper left corner.

Question: Can we make the default viewport centered at 0.0?

:bust_in_silhouette: Reply From: luislodosm

I found a solution:

  • Create a scene with a Camera2D node centered at 0.0 with Current enabled.
  • Add the camera scene to Project Setting > AutoLoad.

I was expecting something more simple, anyway thank you!

thiagola92 | 2023-02-23 20:42