Hello,
We have released a new game for iPhone, and right now I’m working on the iPad version, which differs only by texture resolutions. We want to use bigger, high quality textures for the iPad version of the game but I couldn’t come up with an easy way to do this. I want to be able to change the textures from the script but I don’t want the unused textures to be in the build. Similar to the usage preprocessor directives. Thanks in advance.
Thats easy. simply use different scenes. For anything outside the resources folder / not used on prefabs in resources, unity will only integrate the texture / audio when its used in a scene.
One thing I recently learned about was the Editor Log. After doing a build for iOS open the Editor Log (it’s on the Console Tab in Unity). Scroll to the bottom of the log and you can see what textures were included in the build for the scene and how large they were.
I also do what dreamora said and have different scenes for different devices. When the app starts the 0 positioned scene is a “Loader” that figures out which game scene to load based on what device is running my game.
Thanks for the good advice, I think using 2 scene sets means using 2 material sets for each resolution.
No you can use the same material.
the point is that you need distinct scenes and that the builds must not contain the scenes of the other device / build type. otherwise the art is present and the whole work is meaningless
I’ve heard that apple no longer allows you to have HD version of the same app.
Hope that’s true. I thought it was pathetic and absurd that a mobile app needed to be in separate resolutions, which upsets people who pay, when on desktop and console, you’ve got all the resolutions you need.
As developers we need to put some pride and effort into our work for our players.
Well the app size restrictions were most likely what forced people to only have one texture set per app. I think you can agree that Textures are probably the largest assets in most apps. I don’t think that people wanted to have 2 apps to maintain, update and keep track of.