Hello Guest

Author Topic: Bad scaling of camera for 4x resolution iPad  (Read 4610 times)

Desttro

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Bad scaling of camera for 4x resolution iPad
« on: September 17, 2015, 02:36:20 pm »
Hello,
I have sprite collection set by default to platform 2x, now I added 4x.

I have this script for change platform by resolution:
Code: [Select]
void Awake()
{
Application.targetFrameRate = 60;

if(Screen.width > 1136) {
tk2dSystem.CurrentPlatform = "4x";
}
else {
tk2dSystem.CurrentPlatform = "2x";
}

Debug.Log("CURRENT PLATFORM (main) : " + tk2dSystem.CurrentPlatform );
Debug.Log("Device data:");
Debug.Log("Screen resolution: " + Screen.width + " x " + Screen.height );

Application.LoadLevel("Menu");
}

Camera setup:



When I have tried this to iPhone, all is fine, it look like this (same as editor):



When I have tried this to iPad, it look bad - camera is still zoomed, not zoomed out (same as editor).




How fix that please?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Bad scaling of camera for 4x resolution iPad
« Reply #1 on: September 17, 2015, 11:13:22 pm »
You need to add an override (fit vertical or horizontal, fit visible will work too)

Desttro

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Bad scaling of camera for 4x resolution iPad
« Reply #2 on: September 18, 2015, 07:51:44 am »
I have this setup:



But it still shows in editor like this:

« Last Edit: September 18, 2015, 12:18:25 pm by Desttro »

Desttro

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Bad scaling of camera for 4x resolution iPad
« Reply #3 on: September 22, 2015, 06:56:52 am »
Can someone help me please?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Bad scaling of camera for 4x resolution iPad
« Reply #4 on: September 26, 2015, 02:07:24 pm »
I've asked you some questions about your setup in the other post, please don't cross post.