Cameras in Unity change the width of the scene displayed when using different aspect ratios. This makes it awkward when designing a game with kill boundaries off screen. To have them far enough away so they are off screen at 16:9, means when running at 4:3, their movement is not enough to take them as far as the boundaries.
I am looking for a way to make it so my death triggers are always just outside the camera viewport, whatever aspect ratio the player uses.
Can I attach a collider to an orthographic camera viewport?
In my initial testing, it would appear not, adding a BoxCollider2D works on the camera icon/centrepoint, and a BoxCollider doesn’t attach to anything so is not dynamic.
Any advice on this one would be much appreaciated.