I want to build my mobile game so that it will best fit all the mobile resolutions as well as lower the build size and memory according to the specific screen resolution.
I thought of using the following way:
- Work with AssetBundles and serve the relevant AssetBundle variants according to the screen resolution (Basically I wanted to support HD + QHD different assets)
- Work with the CanvasScaler so that it will scale down when needed
- The init build will probably need to include the relevant screen resolutions asset bundles in it (under the StreamingAssets folder)- so this means that I’ll have different builds for different resolutions.
Few issues with this approach:
- I think that 1 + 2 collides, because if I set the CanvasScaler to some resolution - then replacing the assets in runtime (using the asset bundles) will cause the CanvasScaler to also scale down the assets loaded which are already scaled down.
- Can we create different builds for different resolutions? in the same App Store/Google Play…
- Creating high/low assets can cause a maintenance overhead - can I create the lower resolution automatically via code maybe?
What will be the best approach to support different screen resolution as well to maintain lower build and memory size?