Ho to make scene objects squeeze in according to screen size after build

is there a way to make the scene objects squish in or out after build so that it all fits in the camera. because right now, when i build the game, it is comes out really bad.half of the object is visible because the rest goes out of the screen. i am noob, so sorry if you find this as a dumb question. plz help me, thanks

If you’re making a UI simply use the Canvas (info here) and set your anchors around the object. This will mean that Unity will automatically scale for different aspect ratios.

This Unity video may also help.