unity-optimization

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

2|Updated May 18, 2026
One-click install
npx skills add https://github.com/pcone-mm/NewFPG --skill unity-optimization-pcone-mm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-optimization
Source: https://github.com/pcone-mm/NewFPG/tree/main/.agents/skills/unity-skills/skills/optimization
Command: npx skills add https://github.com/pcone-mm/NewFPG --skill unity-optimization-pcone-mm

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 (compression levels), and audio (PCM/Vorbis/ADPCM with load types) across filtered asset sets. - Scene 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 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 my current Unity scene for high-poly meshes and excessive materials, then batch-compress all textures larger than 1MB.

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 filtering which assets to target. It returns the count and list of modified textures after updating their importer settings.

How to find performance bottlenecks in a Unity scene?

Run scene analysis with configurable triangle and material slot thresholds to flag high-poly meshes and renderers with excessive materials. You can also scan for duplicate materials and transparent objects that cause overdraw.

Can I set static flags on multiple GameObjects at once in Unity?

Yes, the static flags operation targets a GameObject by name, instance ID, or hierarchy path and can apply flags recursively to all children. Supported flags include BatchingStatic, OccludeeStatic, OccluderStatic, and NavigationStatic.

Does batch asset compression in Unity trigger a domain reload?

No, these write operations only modify importer and component settings, which reimport the affected assets without triggering a domain reload. However, there is no dry-run rollback, so verify your asset filter scope before running batch changes.

What audio compression formats does Unity support for build optimization?

Unity supports PCM, Vorbis, and ADPCM compression formats, paired with load types DecompressOnLoad, CompressedInMemory, or Streaming. The batch audio operation lets you set both the format and load type with a quality value from 0.0 to 1.0.