Should root node be a CanvasLayer most of the time?

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

I’m a beginner and have always made my “Main” scene as a “Node”. I’m having trouble with the camera what what’s being shown when I run. Looking at some tutorials on how to make a UI, they all used a CanvasLayer as root:

Given that most games will have an UI, should the CanvasLayer always be a root? Should there be a parent “Main” that has this CanvasLayer as a child?

:bust_in_silhouette: Reply From: exuin

You should do the latter. The CanvasLayer is for the UI, so you shouldn’t put non-UI nodes as a child of it.

In both of the video, the author has a spatial node under the main start menu though?

bli00 | 2023-02-23 21:34