I’ve created a simple 2D game, and through googling I found out how to scale the UI, but I still don’t know how to scale the rest of the game. For example I had a script to spawn game objects at a certain xy location in the screen, but when I build and run the game on my Android device the objects spawn outside of the camera. How can I solve this problem?
Attach the object to the position of something that is scaled down, like text or an image in the UI, so that it moves with it. If you have to, make a UI image and turn off the renderer or something and just use the transform