Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question How to change font size and screen resolution at runtime?

Discussion in 'Getting Started' started by pleasurehouse, Mar 30, 2021.

  1. pleasurehouse


    Oct 15, 2020
    I just realized that the font size varies depending on the screen resolution (see video).

    How to change the screen resolution and the font size at runtime?

    I am using this canvas settings --> (Screen Space - Overlay)

    I want to preserve the aspect ratio of the font at any screen resolution.
    I want the user to be able to choose the screen resolution or set the maximum supported by their device by default.

    Thanks a lot!!

    Last edited: Mar 30, 2021