Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

How to set canvas size

Discussion in 'Project Tiny' started by Ferran_SP, Apr 29, 2019.

  1. Ferran_SP

    Ferran_SP

    Joined:
    Jul 9, 2018
    Posts:
    27
    Hi,
    I'm trying to understand how the canvas entity and its properties work, and having lots of issues in the way.
    I created a project from scratch. In the Tiny Project Settings menu, I've Auto-resize Canvas unchecked, Width set to 414, and Height set to 736.
    Then I create an Entity and add the UICanvas component and the Transform Family components to it.

    One issue I have is that if I try to resize the Canvas entity in the editor, it will show its size: w=296, h=526.
    This is ~71.5% smaller in both width and height than the resolution I'd set in the Project Settings menu.
    Why? How can I change this?

    upload_2019-4-29_12-25-11.png

    On the other hand, if in the Tiny Project Settings menu I check the Auto-resize Canvas property, the canvas will automatically redimension in the editor to w=916, h=512.

    I can't find a reliable way to have a canvas with the size I want.

    (I'm on 2018.3 and UnityTiny 0.14.3.)
     
  2. c8827595

    c8827595

    Joined:
    May 15, 2019
    Posts:
    5
    uiScaleMode => ScaleWithScreenSize
     
    Ferran_SP likes this.