float width = Screen.width;
float height = Screen.height;
float hw = height / width;
//9/16=0.5625
if (hw < 0.5625f)//很宽,以高为准
{
Vector2 ptRightTop = new Vector2(0.5f * Screen.height * 16.0f / 9.0f, 0.5f * Screen.height);
}
else//很高,以宽为准
{
Vector2 ptRightTop = new Vector2(0.5f * Screen.width, 0.5f * Screen.width * 9.0f / 16.0f);
}