As we know, we can set icons for APK which is 1:1 scale like 192192, 144144 on “Player Setting”. I have a special demand to get APK’s icon which is not 1:1 scale to display on Unity’s world. So my question is how to set icon with an image like 2:1 and keep this scale?
I found that when we set an image as icons on PlayerSetting, the image will be modify into an 1:1 image and save into folder “/Temp/StagingArea/res/drawable”
This is a requirement by Google Play that the icons are square. (I’d assume by all the other stores as well)
You may want to have your icon letter-boxed, adding black/white/transparent stripes on top and in the bottom of your 2:1 icon, but have the output image square.
I have solved this problem. My solution is getting icon bitmap with Android’s API , and then create texture and return textureId to Unity. Before that, we need to create Android library project and put the icon which is not 1:1 in it.