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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

OnGUI

Discussion in 'Scripting' started by BrokenhearT, Jun 23, 2015.

  1. BrokenhearT

    BrokenhearT

    Joined:
    May 18, 2015
    Posts:
    69
    Hello everyone,
    I'd like to know how can I make this

    Code (CSharp):
    1. Rect scoreRect = new Rect (0, 0, Screen.width, Screen.height);

    fits every resolution coz after I get it done, the score shows but it's kinda funky and whenever I re size it disappears.

    thanks in advance
     
  2. Mabenan

    Mabenan

    Joined:
    Feb 7, 2014
    Posts:
    132
    The old GUI isn't very good if possible you should use the new ui
     
  3. LeftyRighty

    LeftyRighty

    Joined:
    Nov 2, 2012
    Posts:
    5,148