Bottom Center

I am making a 2D game in which player move upward. Player can resume when game over but I want that whatever will be the position at the time of game over, I calculate screen height of that moment and set Player to active slightly above bottom center position.

How can I get exact slightly above bottom center position? (for Game Object not UI)
Any one knows about it kindly guide me.

Hi!

You can use Camera.ScreenToWorldPoint() to do this. It takes a vector3 as an argument so you can just use the cameras pixelWidth / 2 to get the middle of the screen and make sure that the Z value is that of the player.

Here are the docs with more info: Unity - Scripting API: Camera.ScreenToWorldPoint

Hope this helps!