Unity's Package Manager has a section for Built-in Packages where parts of the engine can be disabled to reduce the runtime build size. Most can be freely disabled when using Inspector Gadgets, but some require you to add a specific Scripting Define Symbol to your Player Settings as listed in the following table to disable the parts of Inspector Gadgets which require the module in question.
Module | Scripting Define Symbol |
---|---|
IMGUI | Cannot be disabled. Almost everything Inspector Gadgets does relates to the GUI system. |
Animation | DISABLE_MODULE_ANIMATION |
Audio | DISABLE_MODULE_AUDIO |
Physics | DISABLE_MODULE_PHYSICS |
Physics 2D | DISABLE_MODULE_PHYSICS_2D |
UI | DISABLE_MODULE_UI |
All Others | Can be freely disabled. |