unity-optimization

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

Updated May 20, 2026
One-click install
npx skills add https://github.com/yuse168/Roomies --skill unity-optimization-yuse168
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-optimization
Source: https://github.com/yuse168/Roomies/tree/main/.agents/skills/unity-skills/skills/optimization
Command: npx skills add https://github.com/yuse168/Roomies --skill unity-optimization-yuse168

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unity projects often ship with oversized builds and poorly optimized scenes because manually auditing hundreds of textures, meshes, and audio clips is impractical. This Skill batch-compresses assets and analyzes scenes for high-poly meshes, duplicate materials, and overdraw risks. ## 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 Analysis: Detect high-poly renderers, 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 a mobile release, run a large-asset scan to find textures over 1MB, batch-compress them to 1024 max size with crunch, then analyze the main scene for meshes exceeding 10000 triangles. ## Quick Start Analyze my current Unity scene for performance bottlenecks and list all textures larger than 1MB so we can reduce the build size.

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 optimize_textures to batch-set max texture size and enable crunch compression across filtered assets. It returns the count and list of modified textures so you can review changes before committing.

How to find performance bottlenecks in a Unity scene?▼

Run optimize_analyze_scene with poly and material thresholds to flag high-triangle meshes and renderers with excessive material slots. Combine with optimize_analyze_overdraw to detect transparent objects causing overdraw.

Can I batch-compress Unity audio files?▼

Yes, optimize_audio_compression sets compression format (PCM, Vorbis, ADPCM), load type, and quality across filtered audio assets in one call. Vorbis with CompressedInMemory is the default configuration.

Does batch optimization require approval before running?▼

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

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

Use optimize_find_duplicate_materials to group materials sharing identical shaders and properties. It returns up to 50 duplicate groups by default, helping you consolidate materials and reduce draw call overhead.