Not signed in
Copyright © 2026 Unity Technologies
DOTween works by adding extension methods to existing Unity classes. The extent to which these extension methods are added is configured by enabling/disabling modules, which map to Unity modules/packages, for example, Audio and UI (UGUI), almost 1:1. The module configuration can be found from Tools > Demigiant > DOTween Utility Panel, and selecting Setup DOTween from this window. By default, DOTween appears to enable its extension methods for all modules. It would appear DOTween is making modifications in its code which prevent the managed code stripping functioning fully for the specific modules. In order to remove the majority of unnecessary size increase in the build, DOTween extensions should be disabled for any module that is not really used in the project. By disabling all of the modules, the build size comes quite close to what it was originally. Enabling the UI module (UGUI) support seems to introduce the biggest size increase, and the effect of the rest of the modules is rather small. It was also observed that the size increase is more significant if there are unnecessary packages/modules in the project. By reducing the packages/modules to what is really required by the project (Engineering Features, Unity UI package, Audio, Physics & Physics2D modules), the size increase is not that significant despite having all DOTween extensions enabled even though they are not used.
DOTween works by adding extension methods to existing Unity classes. The extent to which these extension methods are added is configured by enabling/disabling modules, which map to Unity modules/packages, for example, Audio and UI (UGUI), almost 1:1. The module configuration can be found from Tools > Demigiant > DOTween Utility Panel, and selecting Setup DOTween from this window. By default, DOTween appears to enable its extension methods for all modules. It would appear DOTween is making modifications in its code which prevent the managed code stripping functioning fully for the specific modules. In order to remove the majority of unnecessary size increase in the build, DOTween extensions should be disabled for any module that is not really used in the project. By disabling all of the modules, the build size comes quite close to what it was originally. Enabling the UI module (UGUI) support seems to introduce the biggest size increase, and the effect of the rest of the modules is rather small. It was also observed that the size increase is more significant if there are unnecessary packages/modules in the project. By reducing the packages/modules to what is really required by the project (Engineering Features, Unity UI package, Audio, Physics & Physics2D modules), the size increase is not that significant despite having all DOTween extensions enabled even though they are not used.
DOTween works by adding extension methods to existing Unity classes. The extent to which these extension methods are added is configured by enabling/disabling modules, which map to Unity modules/packages, for example, Audio and UI (UGUI), almost 1:1. The module configuration can be found from Tools > Demigiant > DOTween Utility Panel, and selecting Setup DOTween from this window. By default, DOTween appears to enable its extension methods for all modules. It would appear DOTween is making modifications in its code which prevent the managed code stripping functioning fully for the specific modules. In order to remove the majority of unnecessary size increase in the build, DOTween extensions should be disabled for any module that is not really used in the project. By disabling all of the modules, the build size comes quite close to what it was originally. Enabling the UI module (UGUI) support seems to introduce the biggest size increase, and the effect of the rest of the modules is rather small. It was also observed that the size increase is more significant if there are unnecessary packages/modules in the project. By reducing the packages/modules to what is really required by the project (Engineering Features, Unity UI package, Audio, Physics & Physics2D modules), the size increase is not that significant despite having all DOTween extensions enabled even though they are not used.
How to reproduce:
1. Open the attached project "test dotween1.zip"
2. Build the project for WebGL
3. Observe the size of the Build
4. Delete the Assets/Plugins folder
5. Repeat steps 2-3
Expected results: The Build size does not increase when the "DOTween" asset is in the project
Actual results: The Build size increases when the "DOTween" asset is in the project
Reproducible with: 2021.3.39f1, 2022.3.32f1, 6000.0.4f1
Reproducible on: Windows 10 22H2
Not reproducible on: No other environment tested
Sign in to see your voted issues