Page 1 of 1
Can I reduce the size of Webgl width Arbor?
Posted: 2021/03/14 10:26
by dzynek
Hello
Export of a simple 2D project (rotating square, Unity 2020.2) to Webgl programmed in Arbor - size is 3.52MB (the same project in c# exported to Webgl is 1.94MB).
Can I reduce the size of Webgl?
greetings
Re: Can I reduce the size of Webgl width Arbor?
Posted: 2021/03/14 11:01
by caitsithware
Hello
Please understand that the size of Arbor will always be larger than a project with only simple C# code, because Arbor includes data necessary for graph editing.
To reduce the size as much as possible, you can remove examples and unused BuiltInBehaviours code, and set the Managed stripping levels in Managed code stripping.
https://docs.unity3d.com/Manual/Managed ... pping.html
Note, however, that Managed code stripping may not work properly depending on the setting, as it may delete necessary code.
We cannot provide support if the code does not work properly, so please set the level to work properly.
Re: Can I reduce the size of Webgl width Arbor?
Posted: 2021/03/14 21:27
by dzynek
Thank you for your answer.
This option was already being set: "Managed stripping levels: High" and only removing "unused BuiltInBehaviours code" (which could be done without causing an error) reduced Webgl to 3.35MB
For comparison:
Playmaker (Managed stripping levels: Low): Webgl - 4.41MB, delete unused code: Webgl - 3.8MB
Bolt, as I remember well, probably Webgl - 4.7MB
uScript Unity 2018: Webgl - 3.5MB, delete unused code Webgl - 2.7MB but uScript has probably been abandoned.
greetings