unity-optimization

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

Updated Jan 29, 2026
One-click install
npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-optimization-dylan8865
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-optimization
Source: https://github.com/Dylan8865/FinalYearProject/tree/main/GameDev/Tester/.agents/skills/unity-skills/skills/optimization
Command: npx skills add https://github.com/Dylan8865/FinalYearProject --skill unity-optimization-dylan8865

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unity projects accumulate oversized textures, uncompressed meshes, and bloated audio that inflate build size and hurt runtime performance, and manually auditing every asset is slow and error-prone. ## Core Features & Use Cases - Batch Asset Compression: Apply texture size limits and crunch compression, mesh compression levels, and audio compression formats across filtered asset sets in one operation. - Scene Performance Analysis: Detect high-poly meshes, excessive material slots, duplicate materials, and transparent objects causing overdraw. - Static Flags & LOD Setup: Query and set static flags for batching, 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 to 1024 max size with crunch, then analyze the scene for renderers exceeding 10,000 triangles. ## Quick Start Ask the assistant to find all textures larger than 1MB in the Unity project and batch-compress them with a max size of 1024 and crunch enabled.

Frequently Asked Questions about unity-optimization

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

FAQPage Schema
How do I reduce Unity build size by compressing textures?▼

Use the optimize_textures operation to batch-set max texture size and enable crunch compression across filtered assets. It returns the count and list of modified textures, with adjustable compression quality from 0 to 100.

How to find high-poly meshes in a Unity scene?▼

Run optimize_analyze_scene with a triangle threshold, defaulting to 10,000. It reports total renderers, triangles, material slots, and lists issues for meshes exceeding the poly or material slot thresholds.

Can I batch-change audio compression settings in Unity?▼

Yes, optimize_audio_compression sets compression format (PCM, Vorbis, or ADPCM), load type, and quality across filtered audio assets in one call. It returns the modified asset list without triggering a domain reload.

How do I detect duplicate materials in a Unity project?▼

Use optimize_find_duplicate_materials to scan for materials sharing identical shaders and properties. It returns grouped duplicates up to a configurable limit, helping consolidate materials and reduce draw calls.

Do Unity optimization operations require approval before running?▼

Read-only analysis operations like scene analysis and large-asset scans run directly. Write operations like texture compression and static flag changes require user grant first, then execute in one step with no dry-run rollback.

When should I use the profiler module instead of optimization analysis?▼

Use the profiler module for runtime performance metrics like frame timing and memory. The optimization module handles static asset compression, scene poly analysis, and importer settings rather than live profiling data.