Disable a built-in package
Reduce your project's build size by disabling unused built-in packages.
Read time 1 minuteLast updated 22 days ago
You can disable a if you don't need some modules and you want to save resources. However, when you disable a built-in package, the corresponding Unity functionality is no longer available.
Built-in package
?
Disabling a built-in package results in the following:
- If you use a Scripting API implemented by a disabled package, you get compiler errors.
- Components implemented by the disabled built-in package are also disabled, which means you can't add them to any GameObjects. If you have a GameObject that already has one of these components, Unity ignores them in Play mode. You can view them in the window but they're grayed out to indicate that they're not available.Inspector
?
- When building a game, Unity strips all disabled components. For build targets which support engine code stripping (like Web, iOS, and Android), Unity doesn't add any code from a disabled built-in package.
To disable a built-in package:
-
Open the Package Manager window select Built-in packages from the navigation panel.

Switch the list context to Built-in packages
-
Select the built-in package you want to disable. Its information appears in the details panel.
-
Click Disable.

Disable button in the corner of the details panel
When the progress bar finishes, the check mark no longer appears next to the built-in package and the Disable button becomes an Enable button. -
If you want to re-enable a disabled built-in package, click the Enable button.