unity-optimization

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

Updated Oct 13, 2025
One-click install
npx skills add https://github.com/Darth-Carrotpie/ProxyCore --skill unity-optimization-darth-carrotpie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: unity-optimization
Source: https://github.com/Darth-Carrotpie/ProxyCore/tree/main/.agents/skills/unity-skills/skills/optimization
Command: npx skills add https://github.com/Darth-Carrotpie/ProxyCore --skill unity-optimization-darth-carrotpie

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, inflating build size and hurting runtime performance. This Skill provides batch asset compression and scene analysis tools to identify and fix these optimization issues directly from an AI agent. ## Core Features & Use Cases - Batch Asset Compression: Set max size and crunch compression for textures, mesh compression levels for 3D models, and Vorbis/ADPCM/PCM formats with load types for audio, all with asset filters. - Scene Analysis: Detect high-poly meshes, excessive material slots, duplicate materials, and transparent objects causing overdraw, plus find assets exceeding a size threshold. - Static Flags & LOD Setup: Get and set static flags (batching, occlusion, navigation) on GameObjects and configure LOD Groups with 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 main scene for renderers exceeding 10,000 triangles and set up LOD groups on the worst offenders. ## Quick Start Analyze the current scene for high-poly meshes and excessive materials, then batch-compress all textures to a max size of 1024 with 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 batch compress textures in Unity to reduce build size?▼

Use the optimize_textures operation with a maxTextureSize limit and crunch compression enabled, optionally filtered by asset path. It returns the count and list of modified textures after updating their importer settings and reimporting them.

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

Run scene analysis with configurable triangle and material slot thresholds to flag renderers exceeding them. The result reports total renderers, triangles, material slots, and a list of specific issues to investigate.

Can I find duplicate materials in a Unity project automatically?▼

Yes, duplicate material detection groups materials sharing identical shaders and properties, returning up to a configurable number of groups. Merging these duplicates reduces material count and improves batching efficiency.

What audio compression format should I use in Unity for smaller builds?▼

Vorbis with CompressedInMemory load type is the default choice for balancing size and performance. PCM offers no compression, ADPCM uses less CPU, and Streaming load type suits long background music tracks.

Do Unity asset optimization operations require approval before running?▼

Read-only analysis operations like scene analysis and large-asset finding run directly, while write operations like texture compression and static flag changes require user grant first. Batch operations have no dry-run rollback, so verify filter scope before applying changes.