Maybe a very basic question but I’m about to start creating my first ios game using unity2D, so I’d like to know how to use different assets to suit different screen sizes starting from iPhone 5, it would also be very helpful if I can use iPad assets in the same build, and should I use different sizes of the same asset in one atlas sheet, or make different atlases for different sizes ?
We haven’t found a good solution for this. Unity 5 introduced the asset bundle variants (read here). But we never got them to work.
We use sprite sheets, and with the lack of visibility inside the bundles, we never knew what was in there… or not.
We implemented a custom script that resizes all sprites, patches their meta, to assign them to -sd and -hd sprite sheets, duplicates the prefabs, and fixes all sprite guid references in these SD/HD generated prefabs.
The solution is primitive, but it is working well for us.
Could you please provide me with that custom script ? Also let’s say I’m making a game only for iPhone devices starting from iPhone 5, that means 2x-3x resolutions, can I create my entire game using 3x assets and somehow scale everything down if the game runs on the smaller screen of the iPhone 6 ?
It’s very very sad that unity doesn’t have a simple solution for a major issue like this, it makes it totally irrelevant for mobile developing.