Forum rules - please read before posting.

Camera bounds issue on ultrawide screens with background constraint

Hi,

I'm experiencing an issue with 2D Game Cameras when playing on ultrawide monitors (e.g., 21:9 2560x1080). I’m using the “Constrain to Background” option with a background sprite to limit the camera movement.

Everything works fine on standard 16:9 screens. However, on ultrawide screens, the camera doesn’t move all the way to the edges of the background, it stops too early, cutting off parts of the background that should still be visible. If I disable the background constraint, the camera moves correctly and even shows black bars where the background ends, which is what I’d expect.

I use a fixed resolution for my game 1280x720

Can you help me with that ?

Comments

  • What are your AC and Unity versions?

    This being a visual issue, I'll need to see screenshots of the situation.

    Can you share screens of the Scene window, showing both the MainCamera and the GameCamera, as they reach the edge. I'll also need to see the full Inspector of the GameCamera.

  • Hi,

    Sorry for the delay ^^'

    So I think I resolved this problem (and a lot of other) by forcing the resolution to the one I need by script :)
    Thanks !

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.