I am having issues with getting the camera overrides to work.
I have created the following:
- Setup Sprite collections with platform specific content for 1x, 2x and 4x
- Setup a camera and native state to be that of an iPad 3 - 4x Pixel Perfect
- Created a scene before anything else happens to determine the resolution and set the CurrentPlatform appropriately. Its done in a separate scene to avoid any draw calls
public class ResolutionSetting : MonoBehaviour
{
void Awake ()
{
if(Screen.height <= 320)
tk2dSystem.CurrentPlatform = "1x";
else if(Screen.height <= 770)
tk2dSystem.CurrentPlatform = "2x";
else
tk2dSystem.CurrentPlatform = "4x";
Application.LoadLevel("Scene");
}
}
- I've created Overrides to the cameras for each of the iDevice resolutions (
http://imgur.com/wzFBTKi)
The issue I am having is that the camera isnt being set when changing the Editor iOS prefixes. The platform is changing but the overrides aren't/
I can't call it from my script as the camera resides in the other scene and even if I put to the game scene the awake call would be executed before the camera created.
When viewed in editor the camera doesn't change. What am I doing wrong?