Hey community I have been facing a problem regarding some box colliders positions due to the player's screen resolution, sometimes the user goes off screen and sometimes he doesn't. The work around I have been thinking of is attaching a box collider to my camera and resize it depending of the player's screen resolution. My problem is, I don't know how to implement this. I appreciate all the answers regarding this matter, feel free to suggest other possible work-around...
Since you are using 2D, adding colliders as children of a Canvas object is better. It will resize automatically against the screen. Here is my setup, works fine
Then what do you need? A full screen box collider? It's also very easy to do it with my approach, just by setting collider's size in OnRectTransformDimensionsChange