- Home /
Prefab instance overrides and builds
I have a complex character from the asset store that I would like to heavily modify, but I don't want all the removed components to be included in builds. I also want to maintain the prefab link, for future updates. Will removing a component from a prefab instance in the hierarchy also remove it from builds?
Answer by PlanarBit · May 04, 2019 at 07:18 PM
It won't.
Compiler will still include these scripts. You can verify this by inspecting built assemblies (Assembly-CSharp.dll) using ILSpy .
On way (though a tedious one) is to track down unused scripts and remove them. Here is a nice utility - Asset Usage Detector.
That's good to know. I'm also concerned about components like $$anonymous$$esh Filter and $$anonymous$$esh Renderer. I don't want my build to include those referenced meshes and shaders.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Put all Assets in Resources Folder ? 1 Answer
Some objects not showing up in final build 2 Answers
script that detect assets builded 0 Answers