Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Customizing and Resizing GUI Text

Discussion in 'Immediate Mode GUI (IMGUI)' started by AreebM, Aug 15, 2014.

  1. AreebM

    AreebM

    Joined:
    Mar 27, 2014
    Posts:
    32
    I would like to create a few boxes to be placed on the Menu Screen, each of which contain different text. I'd like to set a certain font size, color and type.

    The problem with using GUI Text is that although I can customize it nicely, I'm not sure how to resize it based on different screen resolutions. I've used the Rect function for GUI Textures, but I'm not sure what to use for GUI Text.

    What is the best way to do this? Would I use GUI Styles? I'm scripting in C, but the Unity documentation only has examples in Java.

    An example menu would be:

    Play
    Tutorial
    Upgrades

    Thank you!
     
    Last edited: Aug 15, 2014