- Home /
Least possible footprint
I dont get it, I've created an empty scene. Added an empty object for axis and a cube. No textures. Then 3 point lights (RGB) and a ultra small script to rotate the cube.
When building this scene, the output is 394 KB ?!?!!?!?!?!? WTF!?
I might understand 30-50 KB, but nearly 400 KB for a minimum footprint? why?
Answer by Eric5h5 · Jun 08, 2011 at 10:13 PM
A webplayer build that has a scene with a cube and 3 point lights is 50K. Look in the log to see what stuff you're including. For example, all scripts and everything in Resources (if it exists) is included regardless of whether they're used or not.
aha! so thats why! I did make a complete blank new attempt. And yes, got it down to around 47 $$anonymous$$B or so. I am trying to build a small loader screen where I can put a simple fullscreen image for my own splash. Its not pro, so I do know that I cant remove Unity logo and I have no intention either. Just want something pretty to look at while downloading 2-10 $$anonymous$$B.
Answer by Bunny83 · Jun 08, 2011 at 01:07 AM
What kind of build do you have created? When you create a web-build you can see the detailed memory usage in the editor log. Just click the small button at the top right of the console window ("open editor log"). If you search for "`**" you will find the line
Player size statistics*`.
"normal" standalone builds work different. They aren't that strong compressed. I just created a webbuild of my test project with some scripts and some prefabs but no textures or mesh data. It creates a unity3d file of 45KB.
The standalone build is much larger of course ;) since it have to include the whole engine ... something about 9.5MB + the exe (about 6.5MB)
I just had a look at your other questions. If you build for iOS i can't share my experience with that since i don't develop for iOS ;)
As far as i know for iOS it also needs the engine to be included. iOS-builds get extremely optimised. It can strip code that isn't needed to reduce the file size
I currently just use Webplayer/webbuild and I have quite a few things in the asserts as I selected some of the default skybox etc. but I didnt use them in the scene, so thats why I am confused about the initial size.
Your answer
Follow this Question
Related Questions
Increase the size of a Scene (space map) 1 Answer
Where do Application.LoadLevel() and Resources.Load() load from? 1 Answer
Webgl crashes after Unity scene load memory cleanup 1 Answer
Unity keep crashing when loading scene from a couritne (Unity 5.x) 1 Answer
CheckConsistency: GameObject does not reference component Animator. Fixing. 0 Answers