So what im trying to do is create some self adjusting variables that can be used to represent the edges of the play area. The variables will be used in creating an object on a 2D plane that will be used in a:
If you want to get the edges of the screen, you can use
Screen.width, Screen.height;
of course, these will only give you positions in screen-space, so you’ll have to do some raycasting to find the actual positions in space (assuming a variable called planeDistance, that determines how far away from the camera the points should be: