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. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

[SOLVED]Resizing Webplayer Fullscreen Differances

Discussion in 'Immediate Mode GUI (IMGUI)' started by kodagames, Sep 5, 2009.

  1. kodagames

    kodagames

    Joined:
    Jul 8, 2009
    Posts:
    548
    Hi,

    Im hoping someone can help me an issue I just cant seem to figure out.

    In the unity editor, when I make my GUI buttons.. I do Rect(Screen.width / 2 - 200, Screen.heigth / 2 - 100, 30, 40) ect..
    and when I play the game.. the buttons are exactly where i want them.

    But when I publish the game, in standalone, or web player, The buttons aren't in the right place unless you right click and go full screen.

    Im also having the same issue with a texture, if I type in the correct coordinates and view it in web player it looks fine but when I right click and go full screen my image is a lot smaller and in the center of the screen, it dosent seem to expand when I go full screen.

    Does anyone know how to solve these issues? going from the web player view to full screen or vice versa and getting buttons and images to resize accordingly when the you switch between the 2?

    I really need the help on this one.

    Cheers,
    zeek
     
  2. kodagames

    kodagames

    Joined:
    Jul 8, 2009
    Posts:
    548
    Ok I got it for some reason all I could think was how I always do it, but the friendly users of the irc channel suggested using percentages in stead of absolute whole numbers and it did the trick :)

    Thanks all.

    Cheers,
    zeek