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

GUI/screen resolution adapt problem …

Discussion in 'Immediate Mode GUI (IMGUI)' started by Flondy, Sep 27, 2014.

  1. Flondy

    Flondy

    Joined:
    Sep 27, 2014
    Posts:
    5
    Hello dear Users i´m hoping anybody can help me coming further i´m new to game developing and want to learn all that stuff

    So i´m using the Unity Version >>4.6<< with the new easier GUI System and so on but i get the following Problem …
    I want to build a smart game to learning that stuff but now i get an Problem where i´m stuck and that is really enoying >.< …

    The Problem is i build an Canvas tjough the new GUI System and add there some buttons and images and so on …
    In the Game View on my PC in Unity all seems very nice and good … you can see that in the pictures below i´ll add …

    The Problem i get is that the GUI Objects bzw the Resolution of the GUI Objects on my Android Phone when i compile and run the game looks veeeeeeery small and that isn what i looked for … i´m very confused cause in my game vew in unity all looks right …

    I suscpect that the reason is my phone´s resolution which is 1920 * 1080 and as a example i set the height and width of the both image objects in the left upper and right upper corner to 20 in unity in the transform and anchoring them in the corners and set some x and y position values to make it looking nice …

    So MY MAIN QUESTION IS : How can i make the Game on my Android Phone looking like it do on my computer ??
    Do i have to scripting any code which adapt the resolution of an screen to the resolution (width and height) of all my GUI Objects ????
    Or is there an easier way ??

    PLS REMEMBER -> i´m using Unity 4.6 with the new GUY System … Canvas and that Stuff …

    I´m very confused and it would be very nice if there is an easier way or an way which helps to make it good looking.

    I set the Render Mode of the Canvas to “Screen Space – Overlay”
    But i even try it with the “Screen – Space” option but it even not works and looks same way …
    It have to be a resolution problem or anything like that … >.< hope somebody can help

    Picture mainmenu without settings on Unity _ > https://imageshack.com/i/eypvcImsp (how it should look)
    Picture mainmenu without settings on Unity _ > https://imageshack.com/i/kqs7FgCbp (how it looks on my Z1 >.<)

    So and i even have an other Problem i´ve addet thwo empty game objects unter the main canvas which should be turned on and off if a button is pressed in this emty objects there are housed for examle settings GUI Objects like images and so on … The Problem here is that even in Unity that stuff all works fine and looks nice but on my phone it is veryyy veryyy small and not looking what it should loook …

    The Pictures are added down here …

    Picture mainmenu with settings enabled on Unity _ >https://imageshack.com/i/p4JQ9kSyp (how it should look)
    Picture mainmenu with settings enabled on my Z1 _ >https://imageshack.com/i/p85PSUEbp (how it looks on my Z1 >.<)

    IT WOULD BE AWESOME IF ANYBODY CAN SAY OR HELP ME WHAT IS GOING WRONG …
    Its very enoying >.<
     
  2. Flondy

    Flondy

    Joined:
    Sep 27, 2014
    Posts:
    5
    problem solved :D