How can I scale the gameobjects to different screen resolutions?
Really depends on what you are trying to achieve. Most indie developers choose a target resolution, like me for example I make games for PC, Mac, and Linux. So I chose a target resolution of 1920x1080, the most common resolution currently. The road to resolution independence can be long and arduous and there is no one way to tackle it.
I would suggest going the route of picking the most common / popular resolution for your targeted platform. You can achieve a greater level of pixel perfection by implementing this script on your Camera:
float UnitsPerPixel = 1f / 100f;
float PixelsPerUnit = 100f / 1f; // yeah, yeah, 100
Camera.main.orthographicSize =
Screen.height / 2f // ortho-size is half the screen height...
* UnitsPerPixel;
You will also find a wealth of information on this topic by Googling “unity resolution independence”, and will find there is more than one way to crack the egg so to speak. However, I have given to you what I feel is the simplest solution.