If I create a new project, add this script:
void Update () {
if (Input.GetMouseButtonDown(0)) {
Debug.Log("Available resolutions: " + Screen.resolutions.Length);
for (int i = 0; i < Screen.resolutions.Length;i ++)
{
Debug.Log("Resolution: "+ Screen.resolutions[i].width + " " + Screen.resolutions[i].height);
}
}
}
I get 0 available resolutions on both iphone 4s and ipad 3. (It works fine in the player)
Does anyone have an idea what I could be missing?
Thanks a lot!
Seb
↧