Search Unity

'Scale with screensize' But have a maximum and minimum size

Discussion in 'UGUI & TextMesh Pro' started by Banjer_HD, Jan 25, 2020.

  1. Banjer_HD

    Banjer_HD

    Joined:
    Dec 17, 2017
    Posts:
    8
    Hey there,

    Is it possible to have a canvas with 'Scale With Screen Size' and put a max and min size to the elements?

    If I am right 'Scale With Screen Size' is converting the pixels you put in the elements into percentages of the screen (using the reference resolution).
    This way an element can always be for example 10% of the width of the screen (1080 * 0.10 = 108 pixels in the editor will equal 10% of the screen).
    But I want to limit this so that on for example 100 inch screens it takes less and on a super small screen it takes more.

    How can I do this?

    Thanks for helping me out! :)