> For the complete documentation index, see [llms.txt](https://wiki.playgama.com/playgama/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.playgama.com/playgama/guides/performance-and-optimization/unity.md).

# Unity

Large WebGL builds slow down first launch, reduce player conversion, and may fail platform size limits.

Build size depends on:

* Unity runtime and generated code
* Assets included in the build: textures, audio, shaders
* Compression: Gzip or Brotli
* how content is delivered (e.g., Addressables)

This guide shows how to reduce the initial build size without changing game logic.

Example: Fast 4G profile in browser DevTools

* No optimization: full game in the initial download
* Addressables only: heavy assets loaded on demand
* Addressables plus this guide: minimal initial package

Same game, different setup: less data before the first interaction and faster startup.<br>

<figure><img src="/files/CRRTx6cCYtJ5TJ5wmHLi" alt=""><figcaption></figcaption></figure>
