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

Strange UI elements behaviour

Discussion in 'UGUI & TextMesh Pro' started by Masteve, Sep 21, 2017.

  1. Masteve

    Masteve

    Joined:
    Dec 13, 2015
    Posts:
    5
    Recently i have been building UI elements for my game and noticing some odd scaling issues on all components on the UI. Depending on the different resolution my icons will be scaled/warped out of shape. Below are two examples of what happens

    1920x1080 (Notice how the bars in the image are different sizes tho it is jsut ONE image with identical sized bars)

    2560x1440


    This UI element above is a image, but this also happens in the same way with pannels in a row to look the same as that image above. Any other UI elements in the scene also act like this, be it Panels or images. This happens at multiple different resoltuons as well as aspect ratios

    My canvas scaler options are;



    Pixel perfect is not selected on the canvas.

    I also scale my ancors like the image below shows



    Thanks for your time, i realy dont know what is going wrong ! : (
     
  2. Johannski

    Johannski

    Joined:
    Jan 25, 2014
    Posts:
    823
    I would guess you have a quite small sprite in there with filter mode point, maybe try using a sprite with a higher resolution and filter mode bilinear
    upload_2017-9-22_10-24-31.png