Can I reduce the size of Webgl width Arbor?

ここは、Arbor開発者へ使い方に関する質問を行うフォーラムです。
注意点:
  • ユーザー様のプロジェクトの仕様上の問題や設計に対する質問には答えられません。
  • Unityの仕様上の問題に対する質問には答えられません。

Here is the forum to do the questions about how to use to Arbor developer.
Attention point:
  • We can not answer your questions about your project specific issues.
  • We can not answer your questions on Unity's specification issues.

Forum rules
注意点:
  • ユーザー様のプロジェクトの仕様上の問題や設計に対する質問には答えられません。
  • Unityの仕様上の問題に対する質問には答えられません。

Attention point:
  • We can not answer your questions about your project specific issues.
  • We can not answer your questions on Unity's specification issues.
dzynek
Posts: 2
Joined: 2021/03/14 10:07

Can I reduce the size of Webgl width Arbor?

Post by dzynek » 2021/03/14 10:26

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

User avatar
caitsithware
管理人
Posts: 401
Joined: 2015/08/17 12:41

Re: Can I reduce the size of Webgl width Arbor?

Post by caitsithware » 2021/03/14 11:01

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.

dzynek
Posts: 2
Joined: 2021/03/14 10:07

Re: Can I reduce the size of Webgl width Arbor?

Post by dzynek » 2021/03/14 21:27

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

Post Reply