Hi there,
I have a major build complete. I do want to shed a lot of weight from the project tho. I am wondering if getting rid of any asset that is not used, will have any effect on the final projects size (web and mobile builds).
Thanks
Hi there,
I have a major build complete. I do want to shed a lot of weight from the project tho. I am wondering if getting rid of any asset that is not used, will have any effect on the final projects size (web and mobile builds).
Thanks
I tried it once and it worked.
Use the build log file. Look at what’s taking up the most space, particularly unexpected elements or things you don’t think should be in the game. Not only will it let you spot stuff that’s worth removing, you might uncover a few forgotten elements or realise somethings much bigger than it needs to be.
Are prefabs included in builds? I have a folder, Prefabs, are all the items in it, despite not being used, loaded into the project at build?
Also, just of note, I removed all extra art, and perhaps most importantly (?), any asset in the Resources floder which was not being used. So, some art, but mostly audio. My web build just dropped to 6.4 MB from 56.1MB. Nice.
Yeah, Everything in a folder named resources is bundled with it whether you need it or not. Another good thing to do is go through all the artwork, and lower the resolution until it is “good enough”, and use compression when possible. Same with audio. When you build the app, you can look in the editor log, and it will list the assets and their sizes.
Thanks.
I just did a build for iOS, it dropped the build size from 121 to 96. Why is this not the same difference in the Web build? (web: difference of almost 60MB, iOS, less than 30MB)
I would guess it would have to be because IOS uses a different kind of compression that is less efficient. But, without looking at the assets, that is just a guess on my part.
Great. Thank you.