playMaker

Author Topic: Touch GUI autoscale?  (Read 1768 times)

DevBoyLars

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Touch GUI autoscale?
« on: June 30, 2012, 04:38:12 AM »
Hi there,
is there a way to setup GUI-elements, which are on a fixed relative position and a relative size? In the Touch-GUI-Tutorial the elements are absolute and this is really bad, if you build a game for an iPhone and iPad - specially on the new iPad.

The elements has to be proportional to the screenresolution.

Is this possible?

DevBoyLars

  • Playmaker Newbie
  • *
  • Posts: 27
    • View Profile
Re: Touch GUI autoscale?
« Reply #1 on: July 01, 2012, 05:08:31 AM »
No one could help? o_O

FlapFail

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Re: Touch GUI autoscale?
« Reply #2 on: July 02, 2012, 11:45:47 AM »
I don't know if this helps, but you could put all your GUI stuff in one parent game object with a script attached to it. This script calculates the scale of the parent so you can set the x and y values of your GUI components as if they were in pixels. The NGUI Plugin is working like this.
This is just a theoretical thought, I did not work this out any further.