m doing an Android Game, and Android devices have many different, like Galaxy 5 (240 x 320) and Motorola Droid (480 x 854). So, i already made the size of my GUI elements relative to Screen Size, but now Im looking for an efficient way to alter font size basead in the Screen Size.
I already found that I can duplicate the fonts, make each one with a size and alter the GUI Style of my GUI Elements, but i dont find it a good solution.
Another alternative is use text as image, but then i cant make a proper internalization or have dynamic text.
So, there is better solutions?
Answer by gtjuggler
Oct 24, 2011 at 06:37 PM
My company developed a tool called the MultiPlatform ToolKit, which is available now on the Unity Asset store. It handles swapping fonts and font materials based on screen size, so long as you're using TextMesh objects. We used this extensively in our Snuggle Truck project.
Feel free to check it out: http://smuggletruck.com/multiplatform and specifically, take a look at Tutorials #3 and #5 which cover the process of doing something similar. You'd be using the Fonts pane to swap out a different Font and Font Material based on your platform/aspect ratio.
The Snuggle Truck presentation at Unite was AWESOME!
I learned a lot... Thanks!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a user guide.
If you are a new user, check out our FAQ for more information.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
For troubleshooting common problems with Unity 5.x Editor (including Win 10).
Answers and Comments
2 People are following this question.
How do I set an Android applications resolution?
Screen brightness on Android
Throw object in android
Problem with screen.
How do I code a GUI/HUD for various Android resolutions and Screen densities?