Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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

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

  1. pleasurehouse

    pleasurehouse

    Joined:
    Oct 15, 2020
    Posts:
    96
    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