- Home /
Change collider position depending of screen size?
Hello unity community!
I have been trying to add a edge collider 2D to both borders of my camera, to prevent the player of leaving a certain area (camera is chasing the player). But when the screen size is changed, the edge colliders remain in the same position.
How can this be fixed? Thanks in advance!
Is this a 2D game or a 3D game? The answer could differ a lot based on how you are trying to implement the camera.
Your answer
Follow this Question
Related Questions
OnCollisionEnter2D is called but the actually collision isn't resolving. 0 Answers
EdgeCollider2D or BoxCollider2D? 1 Answer
Coloring a EdgeCollider2D GameObject 1 Answer
C# Reset EdgeCollider2D.Points.Length and LineRenderer.Positions.Length to 0 0 Answers
Is it possible to have continuous collision detection with dynamic points on Edge Colliders? 0 Answers