Using an orthographic camera set at 0,0,-10, I’m trying to set the position of an object to the bottom left of the screen on any device. I’m using
Vector3 newPos = Camera.main.ScreenToWorldPoint(new Vector3(0,0, 10));
gameObject.transform.position = newPos;
But the objects x & y are way off to the left of the screen. The newPos ends up being at -2.1, -4.7 for the x and y.I thought with screen coordinates 0,0 was always the exact bottom left, not sure if what I’m doing wrong here. I’ve also tried ViewportToWorldPoint using 0,0 but I get the same result, any help would be appreciated. Thanks.