I am making an app where I want the player to be just a little bit off the left side of the screen. When I play in unity my player is just a little bit the the right of the left edge. But when I test on my phone, the player is halfway off the screen. How do I make it consistent throughout all devices so that it is always on the screen but close to the end?
Solving just for position, use Viewport coordinates. Viewport coordinates start at (0,0) in the lower left of the screen and go to (1,1) in the upper right:
transform.position = Camera.main.ViewportToWorldPoint(Vector3(0.5, 0.5, 10.0));
This line (Javascript/UnityScript) would place the pivot point of the object at the center of the screen 10 units from the camera.