getting the resolution of usser's pc

I have already tried Screen.currentResolution but still the program doesnt get the resolution of the user’s pc . GUI messed up when transferring the game to other. I have tried changing it in the player settings and found out that it still follow it. is there a way that the resolution will be based on what you have set on the computer? thanks

Try to use




it gets width and height of the screen