playMaker

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

DeepShader

  • Playmaker Newbie
  • *
  • Posts: 33
Touch GUI autoscale?
« on: June 30, 2012, 07: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?

DeepShader

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

FlapFail

  • Playmaker Newbie
  • *
  • Posts: 15
Re: Touch GUI autoscale?
« Reply #2 on: July 02, 2012, 02:45:47 PM »
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.