Search code examples
unity-game-engine

How to change canvas position in Unity?


I've started in Unity with Roll-a-Ball tutorial. And now I have a trouble with UI Lesson: when I create Text element Canvas parent creates in strange position:

screenshot

But in lesson I see that Canvas is near Player object. How can I move it?


Solution

  • See the bit in your canvas inspector about it being "screen space - overlay"?

    That means:

    "This render mode places UI elements on the screen rendered on top of the scene. "

    And what THAT means, is that you don't have to worry about where the Canvas and child Text show up in your scene view. When you run the game the UI elements will overlay on the background world objects and it'll all be fine.

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