Hi there,
Understanding that there is a compromise between the quality and ease of development what would be the most future proof way of handling multiple resolutions in your opinion?
Here is my take after some research (I'm very new to the topic). In order from least future proof to the most future proof:
- Using conditional compilation "#if UNITY_IPHONE" or any other means to detect device type and then scale or swap textures.
- Using tk2dCamera overrides with different resolutions
- Using tk2dCamera overrides with different aspect ratios
- Using tk2dCamera wildcard override to Fit Visible and switch tk2dSystem.CurrentPlatform to 2x or 4x based on most common resolution ranges at run time to minimize blurring effect, that occurs due to "fitting".
Q1: Does this sound correct? Are there any other even more generic/future proof methods?
Q2: Given the plethora of device out there, what are the best "native/design resolution" values for 1x, 2x and 4x? Would it be 960x640 and then literally 1920x1280 and for 4x - 3840x2560?
Q3: Will that runtime switching code look something like this?
using UnityEngine;
using System.Collections;
public class ResolutionSetting : MonoBehaviour {
void Awake () {
if(Screen.width<=960){
tk2dSystem.CurrentPlatform = "1x";
}else if(Screen.width<=1920){
tk2dSystem.CurrentPlatform = "2x";
}else{
tk2dSystem.CurrentPlatform = "4x";
}
}
}
Thanks.