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

Unity UI Is responsive UI possible in Unity?

Discussion in 'UGUI & TextMesh Pro' started by Android272, Jul 14, 2019.

  1. Android272

    Android272

    Joined:
    Oct 14, 2016
    Posts:
    22
    When you look up responsive UI for unity you will get info about how to snap UI elements to the corners of the screen so that when your games are played on different screen sizes they don't change positions in odd ways. This is not what I am looking for. I want to know if it is possible to make a UI responsive in the way that modern websites are responsive. That is using the same code an UI elements in different ways depending on the size of the screen.

    Below is a quick mock-up of what I want to achieve. When you play on a phone there are two hamburger icons that when pressed a menu slid onto the screen and is hidden when you press the x button. But when on a tablet or PC since you have a larger screen I want these side panels to always be showing.



    Making the hamburger buttons and menus slide in and out is not all that difficult; neither is making the tablet UI. But I have not seen anyone change the UI depending on screen size.
     
    unity_f-vjvnE3sk91bg and pixelR like this.