Android Resolution Problem

Hello. I have a problem:

When I run my game on PC looks fine but when I run game on Android the game has a lower resolution so not seen a two joysticks or any GUITexture. What can I do to move the GUI to resolution?

Thanks in advance;)

If you don’t mind the aspect ratio you can do the following:

Get the two resolution modifiers (x,y), based on your working resolution:

var resolution = new Vector2(Screen.width, Screen.height);
var resx = resolution.x/1280.0f; // 1280 is the x value of the working resolution (as described in the first point)
var resy = resolution.y/800.0f; // 800 is the y value of the working resolution (as described in the first point

And then just use this modifier to resize/relocate the Rects which contain your textures:

targetRect = Rect(70*resx,370*resy,150*resx,140*resy);