2D game works with every screen resolution...is it possible?

Hi everyone, i’m making a game and it doesn’t work very well with all different resolutions…in fact when i change resolution my in game object change position/size and they aren’t UI objects, only sprite with a “box collider 2d” how can i scale and reposition my game objects in base of the resolution chosen by the user?

It’s trivial if you use standard GameObjects with world-space coordinates and don’t try to use pixel-perfect cameras with screen-space coordinates. So you let Unity scale sprites as needed, and when using world-space coords, units are units regardless of screen resolution. Especially with high-dpi screens becoming more common and scaling working quite well, it seems to me the need to focus on pixel-perfect is unnecessary in most cases.

–Eric

1 Like

So i use pixel-perfect method?

No, that’s the opposite of what I said.

–Eric

Sorry but i don’t understand english very well…in short what can i do?

Well, I already explained it so I’m not sure I can add any more.

–Eric