How to make Webgl less size?

FlowCanvas Forums Support How to make Webgl less size?

Tagged: , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2952
    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

    flowcanvas

    FlowCanvas version: Webgl 4.1MB

    How to make Webgl less size?

    greetings

    Attachments:
    You must be logged in to view attached files.
    #2955
    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!

    Join us on Discord: https://discord.gg/97q2Rjh

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