Hello,
I have sprite collection set by default to platform 2x, now I added 4x.
I have this script for change platform by resolution:
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?