void UpdateAspectRatio(int width, int height) { var s = background.transform.localScale; s.x = s.y * width / height; background.transform.localScale = s; }