Search Unity

Problem with scaling images UI TOOLKIT

Discussion in 'UI Toolkit' started by trevorleon, Jul 2, 2022.

  1. trevorleon

    trevorleon

    Joined:
    Jan 22, 2020
    Posts:
    1
    Hello,
    First of all, sorry for my english, my main language its spanish.
    Im having problems scaling the screen to different resolutions. I dont know if its a concept error or what im doing wrong.
    Im using flexbox to align my elements in the correct way but some of them are images and that images are not scaling correctly.

    What i should use ? This is what i think
    - % sizes in image container and 100% width and height to scale?
    - px sizes in image ? This is not working because when i change the resolution, the image keep in the same size

    For example, how do you do this to scale correctly?

    upload_2022-7-1_22-23-13.png

    Im using a 750 x 1334 screen resolution.
    The avatar.png size its 180x180

    Thank you all!
     
  2. ccfoo242

    ccfoo242

    Joined:
    Oct 9, 2014
    Posts:
    85
    Can you share the UXML/USS files?