Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Canvas Scaler works wonders!

Discussion in 'UGUI & TextMesh Pro' started by UDN_388648da-a4c8-4308-af17-47614073dd10, Sep 5, 2023.

  1. UDN_388648da-a4c8-4308-af17-47614073dd10

    UDN_388648da-a4c8-4308-af17-47614073dd10

    Joined:
    May 13, 2017
    Posts:
    59
    I have set the canvas size to be 1024*786 as follows.

    However, the value of RectTransform is different from 1024*786.
    Why does Scale go from 1 to smaller?
    scaler.png

    The size of the GameView is 1024*768. Also, there is no parent object for this canvas.
    gameview.png

    Therefore, I do not know why the 1024*768 size setting is broken.

    The version of unity is 2021.3.4f1.
     
  2. marteko

    marteko

    Joined:
    Apr 4, 2016
    Posts:
    56
    I don't think it's broken, seems Scale 1,1,1 isn't mandatory for Canvases. Under "Rect Transform" it says "Some values driven by Canvas" and values are greyed out. Ignore the canvas scale, In my project from Unity Learn Canvas scale is 0.03 with World Space settings, but when resizing the game UI elements scale as intended, which is the important for the UI - users won't care about Canvas scale, most of the even won't know what it is.
     
  3. karliss_coldwild

    karliss_coldwild

    Joined:
    Oct 1, 2020
    Posts:
    578
    You have 768 and 786 mixed up.
     
  4. UDN_388648da-a4c8-4308-af17-47614073dd10

    UDN_388648da-a4c8-4308-af17-47614073dd10

    Joined:
    May 13, 2017
    Posts:
    59
    Wonderful. This is a really silly question, but it has been resolved.