0
\$\begingroup\$

I'm working on my character menu for an RPG in Unity. I have my menu set up with different buttons for different categories. All is well, except when I re-size my screen, my layout is sized incorrectly. I need my GUI to respond to my screen size. Is there any information or a tutorial I can read?

\$\endgroup\$
6
  • 2
    \$\begingroup\$ @JohnMcDonald I'm not sure I agree with your edit. Responsive is the term used to describe web layouts that react to screen size changes, and I think it's appropriate for a game GUI too. I don't agree that there could be confusion about how quickly a GUI reacts to input (for any non-terrible GUI, anyway). I would recommend a rollback. \$\endgroup\$ Commented Jun 24, 2013 at 5:29
  • 1
    \$\begingroup\$ Welcome to the site. Although you don't know where to begin searching, you are essentially asking for a tutorial on this subject. That's outside the guidelines of what should be asked on this site, which is why I voted to close it. But, here is a question that ought to get you pointed in the right direction. Good luck in your research! \$\endgroup\$ Commented Jun 24, 2013 at 5:34
  • \$\begingroup\$ Quite a lot to read... Thanks @SethBattin. Also, responsive is exactly what I meant. My GUI system is actually based on a pseudomorphic Tablet Application. What I mean is, my GUI is created as my player plays an animation of taking a tablet out and turning it on. The GUI is just an app. \$\endgroup\$ Commented Jun 24, 2013 at 7:00
  • \$\begingroup\$ @SethBattin, rolled back. I did not recognize it as a common term in the web world. \$\endgroup\$ Commented Jun 24, 2013 at 15:38
  • 3
    \$\begingroup\$ What are you currently doing? Are you using UnityGUI or some other middleware? \$\endgroup\$
    – Tetrad
    Commented Jun 24, 2013 at 17:02

2 Answers 2

1
\$\begingroup\$

I'm disturbing an old thread but I feel it's worth it. You can use the all new unity 4.6 with a great UI system. The anchors is the magic word you should look for. Setting the anchors of the UI elements to their corners will make them responsive. It is as simple as that.

\$\endgroup\$
1
\$\begingroup\$

I resolved my issue. I accomplished this by creating a ratio based on target screen sizes and actual screen sizes. This ratio is then applied to static value coordinates.

\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .