Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: DeepShader on June 30, 2012, 07:38:12 AM

Title: Touch GUI autoscale?
Post by: DeepShader 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?
Title: Re: Touch GUI autoscale?
Post by: DeepShader on July 01, 2012, 08:08:31 AM
No one could help? o_O
Title: Re: Touch GUI autoscale?
Post by: FlapFail 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.