I'm creating a 3d project by making a menu.
When I run the game at different resolutions it always changes the menus.
I do everything in Free aspect
, my intention is that even in other resolutions the menu and its buttons remain the same.
I have done with gui.Skyn
, my measurements are based this way:
posiY = Screen.height/2 + (Screen.height/2-93);
posiX = Screen.width/2 -(Screen.width/18-20);
function OnGUI(){
GUI.skin.font = fonte;
GUI.skin.label.fontSize = Screen.height/10; if(colocarItem.exibeMenu){
GUI.skin = perSkin[1];
if (GUI.Button(Rect( posiX2 ,posiY2 ,Screen.width/12 -5 ,Screen.height/6),"")
{
}
}