So this is the scene:
The object of the game is to swipe to throw the ball at targets that spawn from the right of the screen, moving along the conveyor. If a target makes it all the way across, the game over collider is triggered and causes a game over.
I have put red rectangles in the screenshots to represent the max/min aspect ratios and as you can see the game over trigger is too far away from the edge from the 9:18 aspect ratio causing a delay between the target going off the side of the screen and the game over being triggered.
I have tried creating a very simple script to fix the gameover gameobject to the left side and attaching it to the game object:
Vector2 worldPoint = Camera.main.ScreenToWorldPoint(new Vector2(0, 0));
But it doesnt work. I am very much a beginner so forgive me if I am going about this completely wrong!
I got that code from here: How can you position a gameobject in the world aligned to the screen edge? - Questions & Answers - Unity Discussions
Any help much appreciated!
Thanks!