Edge of the screen collision in 2D game

Hi, is there any way to detect edge of the screen and collide with it without putting objects around?

Right now i shoot an object and it bounces of the grass sprite at the bottom.
Is it okay, performance wise, to put three box colliders around the screen or there are other solutions? (like one sprite border with a mesh collision?)

it’s ok performance wise.

If you create a cube at the top of your camera view, set the X,Y to 1, set the Z to the width of your level and un-check Mesh Renderer. This will give you a very efficient way to stop projectiles.

Oh and make sure its collider is set.