According to this post i removed some of the references and rebuild the project in MonoDevelop without any errors. So it seems that some of the dll files are not used in my code. When i build the WebGL application the removed dll files are still listed in the Editor.log.
I also made a build of an empty WebGL project and it seems that this dependencies were added by default. Is there any chance to reduce this list of dll files.
Our WebGL platform, uses IL2CPP as scripting backend, which automatically strips all unused managed code. So, if you are not using these DLLs, they will not be included in the final build.
I was just confused why e.g. the UnityEngine.Analytics.dll is listed in my Editor.log file as dependency and also appears in the “managed” folder of my project (about 38kb large, same size like in the “not stripped” folder). I definitively don’t reference this one in my code and also checked the “disable HW Statistics” setting in the player settings (if this is related to the DLL).
I just tried to optimize the export of my WebGL application and thought every dependency listed in the Editor.log will be inserted into the final code (at least a stripped part of the DLL). The export of my project is about 4.5MB large (compressed) and the included DLLs are the largest part of that (around 3.9MB = 88% of the whole build size).
Related to this topic i have another question about the stripping. For example when i use only UI-Buttons in my GUI class, does it make any difference when i reference like that:
using UnityEngine.UI.Button;
instead of
using UnityEngine.UI;
Again thanks a lot for replying.
I attached the Editor.txt of the last build if its of interest.