Hello everyone! Is there any way to have a GUI button in the same position in all android devices? I tried with screen.width - screen.height but it doesn’t work. Any help is appriciated
If you are using GUI Textures you can put the Pixel Inset X,Y, to zero and change the position in the transform,
or if you are using a script function OnGui you can say to the gui have:
Screen.width/2 + x and Screen.hight/2 + y,
this makes the positioning is done taking into account the middle of the screen,
X and Y are variables and you change this to have the final position.