Search Unity

Creating button and canvas way to big

Discussion in 'UGUI & TextMesh Pro' started by pKallv, Aug 23, 2014.

  1. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,191
    I am trying to create a new UI with a button for the first time on a 2D background. My scene is 768 x 1024 and when i create the button the canvas, and the button, is way too big. I have tried to resize etc. but i can not really get it right.

    Could someone point me towards the correct way of doing this?
     
  2. Dave-xP

    Dave-xP

    Joined:
    Nov 8, 2013
    Posts:
    106
    unity_r23o7gn4a8X7fg likes this.
  3. HappyLDE

    HappyLDE

    Joined:
    Apr 16, 2014
    Posts:
    56
    Change render mode to Screen Space - Camera and then attach your camera to it.
     
  4. pKallv

    pKallv

    Joined:
    Mar 2, 2014
    Posts:
    1,191
    There we go, thanks.

    BTW, i did check the tuts.
     
  5. toast_sapper

    toast_sapper

    Joined:
    Dec 28, 2016
    Posts:
    2
    THANK YOU!

    I've been following tutorials on Udemy and they never showed this, I also had little success Googling for this answer.
     
    icanfly342 likes this.
  6. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,092
    This is quite an old thread you're replying to.
    There are some video's about the UI elements made by unity to explain the components.
    The canvas scaler is something you may also want to look at as by default it is set to pixel reference scale 1.
    https://unity3d.com/learn/tutorials/topics/user-interface-ui

    As far as i know there is some overhead in the camera canvas
    If set to screen overlay it may look big in the scene editor but not in the game view
    I guess they chose it to be that big in sceneview to easily edit it
     
  7. RuneShiStorm

    RuneShiStorm

    Joined:
    Apr 28, 2017
    Posts:
    264
    When I import my on dialog box, its transparent.. Any idea why?
     
  8. jbradley

    jbradley

    Joined:
    Aug 28, 2013
    Posts:
    1
    I also had this issue. I had to update the `Sorting Layer` on the Canvas for the UI components to show up. Screen Shot 2019-08-18 at 8.53.57 AM.png
    I added a sorting layer below everything else called UI.
     
    KirbyGaming and RuneShiStorm like this.