How to make Webgl less size?

Forums 💬 FlowCanvas ⚙️ Support How to make Webgl less size?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12318
    dzynek
    Participant

      Hello

      I was creating a simple project (rotating 2D square) in C# and exporting to Webgl in Unity 2020.3, the size was 1.94MB

      Build Settings: Code Optimization: Size

      Player Settings: Manager Stripping Level: High, Compression Format: Brotli

      [attachment file=”flowcanvas.png”]

      FlowCanvas version: Webgl 4.1MB

      How to make Webgl less size?

      greetings

      #12319
      Gavalakis
      Keymaster

        Hello there,
        A big factor for the build size has to do with the link.xml (code stripping) file generated. To be on the safe side, the link.xml generated adds code that you may not really use in your project. To minimize the size, you will need to please also modify the generated link.xml code to remove code that you do not need in your project. This link.xml file has to do with Unitys code stripping. For more details please also take a look at this link -> https://docs.unity3d.com/Manual/ManagedCodeStripping.html

        Please let me know if that helps and works for you.
        Thank you!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.