Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

New Canvas does not fit to the Camera by default

Discussion in 'UGUI & TextMesh Pro' started by bigobangux, Jul 3, 2017.

  1. bigobangux

    bigobangux

    Joined:
    Jun 30, 2017
    Posts:
    3
    I might be doing something wrong, because I am new to Unity, but I followed instructions from the official tutorial video that suggested creating a new canvas like Hierarchy->Create->UI->Text that automatically created a new canvas, but this canvas was located at (0, 0, 0) - only its left bottom corner was visible from the camera, and it was enormous and behind the actual scene, so I had to do the following to see a new text instance: I changed Render Mode to Screen Space - Camera, set my main camera, and reduced Plane Distance to 1 because it was >100, so it was behind the scene. Nevertheless, canvas is still not properly aligned with camera, because x coordinate of text <200 correponds to text being far outside the camera view. Did I miss something and text canvas should be created differently? Thank you.
     
  2. bigobangux

    bigobangux

    Joined:
    Jun 30, 2017
    Posts:
    3
    Aha, I got it, in that video tutorial that guy was looking through the "game view" all along, so he could see the UI right along. Thank you.