Dialogs are scaled depending on the user's resolution and UI size. The UI's size is set depending on the aspect ratio of the user's resolution. For example, If the user has a resolution with aspect ratio 4:3 (1024x768, 1152x768, etc) set in-game then the UI size will be 1600x1200. Take a look at the following chart I have created:
Please note these are the only resolutions that I am able to view from my computers. There may be missing resolutions from the chart.
The percentages are what are multiplied to all dialogs to correctly scale them to the user's resolution. They are found by dividing either the width or height of the user's resolution with the UI size.
To find the size of a dialog in-game, multiply the dialog size with the percentage value.
Example:
Dialog size is set to 256x256 in the editor. Resolution in-game is 1024x768 which has an aspect ratio of 4:3 and therefore sets the UI size to 1600x1200.
(256*.64)=163.84
To find the value that was set in the editor, do the opposite.
(163.84/.64)=256
And this concludes my first tutorial! :)
Thanks for reading.
Dialogs are scaled depending on the user's resolution and UI size. The UI's size is set depending on the aspect ratio of the user's resolution. For example, If the user has a resolution with aspect ratio 4:3 (1024x768, 1152x768, etc) set in-game then the UI size will be 1600x1200. Take a look at the following chart I have created:
Please note these are the only resolutions that I am able to view from my computers. There may be missing resolutions from the chart.
The percentages are what are multiplied to all dialogs to correctly scale them to the user's resolution. They are found by dividing either the width or height of the user's resolution with the UI size.
Example :
To find the size of a dialog in-game, multiply the dialog size with the percentage value.
Example:
Dialog size is set to 256x256 in the editor. Resolution in-game is 1024x768 which has an aspect ratio of 4:3 and therefore sets the UI size to 1600x1200.
To find the value that was set in the editor, do the opposite.
And this concludes my first tutorial! :) Thanks for reading.