How to change the position of the canvas in Unity?

I am very new to Unity and GameDevelopment. So I started with the Roll-a-Ball tutorial. And now I have problems with UI Lesson. When I create a Text element, the Canvas canvas is created in a weird position.

screenshot

But in the lesson, I see that the Canvas is next to the Player object. How to move it?

+5
source share
3 answers

See a bit in the canvas inspector that this is “screen space overlay”?

It means:

" This rendering mode places the user interface elements on the screen displayed on top of the scene. "

And what that means is that you don’t have to worry about where Canvas and child text appears on the scene screen. When you start the game, the user interface elements will be superimposed on the background background objects, and everything will be fine.

Source: http://docs.unity3d.com/Manual/UICanvas.html

+6
source

If you want to see how the canvas fits inside your scene camera image, change the Canvas Render Mode to Screen Space - Camera; then drag the main camera into the new visible Rendering Camera field in the inspector.

+4
source

It doesn’t matter where the canvas is, but you can select a child named “text” and change the X and Y values ​​to move it around the screen. Hope this helps!

+3
source

All Articles