is there a way to make my script recognize on what is the resolution of the pc i am using… for example I change the resolution on the .exe, the one you select before starting the game, the script will automatically adjust all the gui based on the resolution you selected
Well you can use Screen.currentResolution to get a Resolution object so you can do Screen.currentResolution.width, or height if you want specific stuff. Alternatively you can get the screen height and width directly. Whenever I draw GUIs I always base my dimensions on screen height and with. In C# it’s literally Screen.width or Screen.height
Here’s a real basic example
GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height),GUI.skin.FindStyle("Background").normal.background);