Stripping out components

Issue #26 resolved
Matt D created an issue

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)

  1. Hiroki Omae

    I assume that dedicated server build you mean is a build of player itself and not asset bundles. Is this correct?

  2. Matt D reporter

    It involves components from asset bundles like mesh colliders, but would it be possible to remove any unneded rendering or audio assets?

  3. Hiroki Omae

    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.

  4. Hiroki Omae

    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.

  5. Log in to comment