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

Unable to see UI Canvas in Scene.

Discussion in 'Editor & General Support' started by toonheart, Jun 28, 2021.

  1. toonheart

    toonheart

    Joined:
    Sep 25, 2014
    Posts:
    2
    Hey all,

    I'm new to Unity and just started doing the tutorials.
    So, please excuse if this is a silly question.

    I'm trying to do this 2d tutorial where I have to change the game name and menu text.
    https://learn.unity.com/tutorial/2d...38feedbc2a0ee1e7e030#5ce4843cedbc2a5d145e7609

    However, I don't see the UI canvas on scene at all.
    It was visible once, huge, above the platforms when completely zoomed out; but then vanished when I hit play once and came back to scene.

    Tried a bunch of things, but can't figure out what I'm doing wrong.
    Attaching images.

    Two issues right now are

    1. Can't seem to find the UI in scene to be able to see how text looks while changing.
    (It is unhidden in layers)

    Capture1.PNG



    2. Even if I blindly change the text properties (like alignment), it changes back to left-aligned when I play it.

    Capture2.PNG


    Help appreciated.
    Thank you
     

    Attached Files:

  2. toonheart

    toonheart

    Joined:
    Sep 25, 2014
    Posts:
    2
    What a bizarre thing.
    Right after posting here, I seem to have stumbled upon the "checkbox" that was tickedoff (somehow).
    And the (2) mentioned in initial post is also working now after enabling the checkbox.
    Still though, strange that changing text works (when checkbox was off & ui wasn't visible), but alignment wouldn't work.

    Capture3_solved.PNG
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,517
    Alignment is handled by scripts within the hierarchy.

    Turning off the underlying GameObject(s) most likely meant none of those scripts operated.

    To see what I mean, you can peruse the source code for UnityEngine.UI classes, either online at the git repository or else in the packages imported into your project.