unity-build-size
БесплатноЗапускает вложенные скриптыНе проверенFinds and shrinks what makes a Unity 6.3 LTS build too big: Build Report reading, uncompressed textures, glTFast models, PCM audio and per-platform levers…
от gamedev-skills★ 12 656 звёзд на GitHubОб этом скилле
Unity build size
Bring a Unity player build under a size limit: measure the thing that is limited, fix the few
assets and settings that dominate it, rebuild, and prove the result runs. Targets Unity 6.3 LTS
(6000.3); the scripts were exercised against glTFast 6.20.0 projects. Keep an existing project's
version from ProjectSettings/ProjectVersion.txt.
Script paths below are relative to this skill's folder. Both scripts are read-only, standard-library Python 3.10+.
1. Pin what is limited
A build has several sizes, and fixing the wrong one wastes the user's time. Find out which file is limited and by how much, then read only the matching reference:
| Target | What is usually limited | Read |
|---|---|---|
| Browser (itch.io, portals, own site) | each file in Build/ (itch.io: 200 MB per file) and the compressed download |
references/platform-web.md |
| Android (APK, AAB, Google Play) | the download Play computes from the AAB | references/platform-android.md |
| iOS (App Store, TestFlight) | the thinned download per device | references/platform-ios.md |
| Windows, macOS, Linux (zip, jam, Steam) | the archive, the installed folder, or Steam patch size | references/platform-desktop-steam.md |
If the user names a number but not the file it applies to, ask that one question. With no hard limit, pick what the user pays for (download, installed size, patch size) and say which one you measured. Write down the current size of that file before you change anything: it is the baseline you compare against.
2. Measure what ships
Build once (or use the last build of this Editor session) and summarize the Build Report:
python scripts/build_report.py ~/Library/Logs/Unity/Editor.log --top 20
Log paths: Windows %LOCALAPPDATA%\Unity\Editor\Editor.log, Linux
~/.config/unity3d/Editor.log, from Unity 6.5 <project>/Logs/Editor.log unless Use Global Editor
Log or -useGlobalLog is set, batch mode the -logFile path. Categories say what kind of data
dominates; the asset list says which files. The sizes are uncompressed and in MiB, so they are
not the download size: always compare against the file you measured in step 1.
When the Unity CLI is installed (unity --version), it can make the build and keep its log:
unity build . --profile "<Build Profile name>" --output <output path> --log-file build.log, then run
build_report.py build.log. Without it, use the Editor's Build Profiles window or the project's
build script.
3. Find the causes in the project
# --platform: the one you ship, as Standalone, Android, iPhone or WebGL
python scripts/check_unity_build_size.py path/to/Project --platform WebGL --max-texture-size 2048
Without the right --platform, that platform's texture overrides are not checked. Each
WARNING names a file, the setting, an estimated build cost and a fix: line; NOTEs are
context. The checker cannot know which assets a build references, so cross it with the Build
Report: an asset no shipped scene uses costs nothing.
4. Fix the biggest category first
Smallest change first, one category at a time, so the next measurement shows what each fix bought.
- glTF/GLB with embedded images (
gltf-embedded-texture): glTFast ships them uncompressed, and they have no Texture Importer to fix. Run the checker'sfix:command, or move the images out; read references/gltf-textures.md before the first one. - Textures (
uncompressed-texture,texture-max-size): Compression Normal Quality and a lower Max Size, per platform if needed (Pattern below). An override with an explicit Format ignores Compression, so set that Format to Automatic or a compressed one. For download size on DXT/ETC formats, Use Crunch Compression shrinks the files further at some quality cost. - Audio (
pcm-audio): Vorbis for music and ambience, ADPCM for short effects, Force To Mono where stereo adds nothing. - Resources and StreamingAssets: everything in a
Resourcesfolder ships whether or not it is loaded;Assets/StreamingAssetsis copied byte for byte. Move out what nothing uses. - Meshes, animation, lightmaps: Model Importer Mesh Compression for FBX/OBJ (glTF: reduce the
source,
gltf-heavy-geometry), animation compression on clips, and in the Lighting window a lower Max Lightmap Size and Lightmap Compression when lightmaps top the Textures category. - Scenes: remove test scenes from the Scene List of the profile you build.
- Code and engine size: when native libraries,
.wasmor managed DLLs top the list, apply the platform reference's settings; stripping levels andlink.xmlbelong tounity-build-pipeline. - Packaging: the platform reference covers player compression, store packaging and the debug folders that must not
Установить unity-build-size в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл unity-build-size?
Finds and shrinks what makes a Unity 6.3 LTS build too big: Build Report reading, uncompressed textures, glTFast models, PCM audio and per-platform levers. Use when an APK, AAB, WebGL build or Steam depot is over a size limit or the download is too big. Not for frame rate (`performance-optimization`), build scripts or stripping (`unity-build-pipeline`) or store uploads (`steam-publish`).
Как установить скилл unity-build-size?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл unity-build-size запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic