unity-optimization

Batch-compress Unity textures, meshes, and audio while analyzing scene poly counts and material usage.

Updated Jun 21, 2026
One-click install
npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-optimization-du-qwq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-optimization
Source: https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications/tree/main/.agents/skills/unity-skills/skills/optimization
Command: npx skills add https://github.com/du-qwq/Shader-Writing-Architecture-and-Specifications --skill unity-optimization-du-qwq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unity projects accumulate oversized textures, uncompressed meshes and audio, and scenes with excessive polygon counts or duplicate materials, leading to bloated build sizes and poor runtime performance. This Skill batch-optimizes project assets and analyzes scenes to pinpoint performance bottlenecks. ## Core Features & Use Cases - Batch Asset Compression: Compress textures (max size, crunch), meshes (Off/Low/Medium/High), and audio (PCM/Vorbis/ADPCM) across filtered asset sets in one operation. - Scene Analysis: Detect high-poly meshes, excessive material slots, duplicate materials, and transparent objects causing overdraw. - Static Flags & LOD Setup: Set or query GameObject static flags and configure LOD Groups with custom screen-relative transition distances. - Use Case: Before shipping a mobile build, run a large-asset scan to find textures over 1MB, batch-compress them with crunch, then analyze the main scene for renderers exceeding 10,000 triangles. ## Quick Start Analyze my current Unity scene for high-poly meshes and excessive materials, then batch-compress all textures larger than 1MB with crunch compression enabled.

Frequently Asked Questions about unity-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch compress textures in a Unity project?

Use optimize_textures with a maxTextureSize, crunch compression toggle, and quality setting to batch-modify texture import settings. An optional filter parameter narrows which assets are affected, and the result lists all modified textures.

How to find large assets increasing Unity build size?

Use optimize_find_large_assets with a size threshold in KB to list assets exceeding that limit. You can filter by asset type such as Texture2D or AudioClip and cap the number of returned results.

Can I detect duplicate materials in a Unity scene?

Yes, optimize_find_duplicate_materials scans for materials sharing identical shaders and properties, returning them as duplicate groups. This helps consolidate materials and reduce draw call overhead.

Does batch compression trigger a Unity domain reload?

No, write operations modify importer and component settings, which reimport assets but do not trigger a domain reload. However, there is no dry-run rollback, so verify filter scope before running batch changes.

Why is my Unity scene running slowly with transparent objects?

Transparent objects cause overdraw when many overlapping surfaces render per frame. Use optimize_analyze_overdraw to list transparent objects in the scene, then reduce overlap or adjust rendering order to improve performance.