Uploaded February 2016 | Updated September 2026, 1 week ago
Introduction to Viewport node. Don''t sweat it if you don' t completely understand this yet. The key here is to:
-Understand that this node exists, and that it' s name is "root"
-Remember that it's always loaded in SceneTree
-Scenes being run are loaded as children of it.
-You can use it to get the "game" screen resolution and mouse position in "game" coordinates (not physical screen coordinates).
Introduction to Viewport node. Don''t sweat it if you don' t completely understand this yet. The key here is to:
-Understand that this node exists, and that it' s name is "root"
-Remember that it's always loaded in SceneTree
-Scenes being run are loaded as children of it.
-You can use it to get the "game" screen resolution and mouse position in "game" coordinates (not physical screen coordinates).









