unity-optimization

Optimize Unity project assets and analyze scenes for performance bottlenecks.

Updated Aug 18, 2026
One-click install
npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-optimization-ethanjpope
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-optimization
Source: https://github.com/ethanJPope/Our-Main-Hackathon-Game/tree/main/.agents/skills/unity-skills/skills/optimization
Command: npx skills add https://github.com/ethanJPope/Our-Main-Hackathon-Game --skill unity-optimization-ethanjpope

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Unity projects accumulate oversized textures, uncompressed meshes and audio, duplicate materials, and scenes with excessive polygons or overdraw, all of which inflate build size and hurt runtime performance. This Skill provides batch asset compression and scene analysis tools to find and fix these issues. ## Core Features & Use Cases - Batch Asset Compression: Set texture max size and crunch compression, mesh compression levels, and audio compression formats across filtered asset sets in one call. - Scene Performance Analysis: Detect high-poly meshes, excessive material slots, duplicate materials, and transparent objects causing overdraw. - Static Flags & LOD Configuration: Query and set StaticEditorFlags on GameObjects and configure LOD Groups with screen-relative transition distances. - Use Case: Before a mobile release, run optimize_find_large_assets to list textures over 1MB, apply optimize_textures with a 1024 max size, then run optimize_analyze_scene to catch remaining high-poly models. ## Quick Start Ask the AI to find all assets larger than 1MB in the Unity project and then batch-compress the textures to a maximum 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 reduce Unity build size by compressing textures?

Use optimize_textures to batch-set max texture size, enable crunch compression, and adjust compression quality across filtered assets. Combine it with optimize_find_large_assets first to identify which textures exceed your size threshold.

How to find performance bottlenecks in a Unity scene?

Run optimize_analyze_scene with polygon and material slot thresholds to flag high-poly meshes and renderers with excessive materials. You can also use optimize_analyze_overdraw to list transparent objects that may cause overdraw.

Does setting static flags in Unity trigger a domain reload?

No. The optimization write skills modify importer or component settings and reimport assets, but they do not trigger a domain reload. Batch operations have no dry-run rollback, so verify your filter scope before applying changes.

What does the Everything static flag include in Unity?

Everything means the five non-deprecated flags: ContributeGI, OccluderStatic, OccludeeStatic, BatchingStatic, and ReflectionProbeStatic, numerically 87. NavigationStatic and OffMeshLinkGeneration are deprecated and must be named explicitly to be applied.

How do I find duplicate materials in a Unity project?

Use optimize_find_duplicate_materials, which groups materials sharing identical shaders and properties. It returns up to a configurable limit of duplicate groups so you can consolidate them and reduce material count.