When we added
UI Root at the beginning of the chapter, it created both
Now that we have a sprite and a label within our scene, we can properly understand what the purposes of these two mysterious GameObjects are.
UI Root GameObject in the Hierarchy view. You can see that the
UIPanel components are attached to it. Let's see what
UIRoot's purpose is.
UIRoot component scales widgets down to keep them at a manageable size inside the scene view. It also handles the different scaling styles.
Your Game view's aspect ratio might be set to Free Aspect or another value. For us to have the same results during the explanations to come, set it to 16:9, like this: