string[] res = UnityStats.screenRes.Split('x'); Debug.Log(int.Parse(res[0]) + " " + int.Parse(res[1]));