My game requires a prefab to be instantiated in the middle of the screen. Currently I have the code set up like this:
Instantiate(_Confirm,new Vector3(Screen.width/2,Screen.height/2,0),Quaternion.identity);
However, when I run the code, I find that it object has been instantiated far away from my viewport.
EDIT: It's a 2D game