- Home /
Does Unity include unreferenced scene assets in a build?
I have a client/server project, with a client scene and server scene.
The server scene contains the world terrains. I do not want to packet this in the client builds.
If I only build the client, will Unity include the terrains, even though the client does not have a reference to them in any way at build time? The server sends this information via tcp upon login. Thanks!
I would check your editor log to be sure .. I have experienced what may be a bug: sometimes I have assets included that I am not referencing .. to confirm if this is happening to you or not, try building an empty scene and checking your editor log under 'Used Assets, sorted by uncompressed size:'
Answer by ptdnet · Dec 07, 2011 at 07:33 PM
Short answer: no (from my experience)
Long answer: I just tried this out a couple days ago... I put 10-20 MB worth of graphics in my project and made a scene. I did not add the scene to the list of scenes in the build. In X-Code the size of the app did not increase.
Anything in a Resources folder will be included whether it is referenced or not. Otherwise it's not supposed to but I've witnessed it thinking it was referencing something that it wasn't, after deleting lots of stuff.