Stripping out components
I'm not sure if AGBT is the place to do this or if I need to create my own postprocessing scripts, but I would like to be able to ship a dedicated server build. To do this, I want to remove unneeded assets, such as AudioSources, Mesh Renderers and other client-side objects. This could yield massive file-size reductions.
Comments (8)
-
-
reporter It involves components from asset bundles like mesh colliders, but would it be possible to remove any unneded rendering or audio assets?
-
Thank you for the explanation. This is very interesting topic, but I think I need to talk to build pipeline team in Unity before I jump onto topic.
-
- assigned issue to
- marked as major
-
- changed status to on hold
This issue needs some deeper consideration. I will put on hold for now
-
- changed version to 1.1
-
Update: with change 9c05f8c you can now remove components from GameObject with Modifier script, both in Prefabs and Scenes. It will be non-undoable operation, so that it should be done only in separate copy of your project just for building Server-side Player - but technically speaking, removing component should be possible.
-
- changed status to resolved
@DWSMatt I will make this issue mark as resolved. Please re-open if you feel this issue is not solved yet.
- Log in to comment
I assume that dedicated server build you mean is a build of player itself and not asset bundles. Is this correct?