From unity-cli
Profiles Unity performance including CPU, GPU, GC, and memory. Provides optimization checklists and analysis patterns for bottlenecks.
How this skill is triggered — by the user, by Claude, or both
Slash command
/unity-cli:unity-perfThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **PREREQUISITE:** `../unity-shared/SKILL.md`(Relay Server 経由で Unity Editor が起動/アクティブであること)
PREREQUISITE:
../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること)skill 経由のコマンドは必ず
-i <instance>を付ける (unity-shared #インスタンス指定)。
1. /unity-verify Quick Verify コンパイルエラーがないことを確認
2. u -i <instance> play Play Mode 開始
3. u -i <instance> profiler start プロファイリング開始
4. 計測 (数秒〜数十秒)
5. u -i <instance> profiler snapshot スナップショット取得
u -i <instance> profiler frames --count 10 フレームデータ取得
6. u -i <instance> profiler stop 停止
7. u -i <instance> stop Play Mode 終了
8. 分析 → 最適化提案
u -i <instance> profiler start # 開始
u -i <instance> profiler stop # 停止
u -i <instance> profiler snapshot # 現在のスナップショット
u -i <instance> profiler frames --count 10 # 直近Nフレーム
| ボトルネック | 確認方法 | 対策 |
|---|---|---|
| CPU | frames の処理時間 | ホットパスの最適化 |
| GPU | frames の描画時間 | バッチング、LOD |
| GC | frames の GC Alloc | オブジェクトプール、struct 化 |
| メモリ | snapshot のメモリ使用量 | アセット圧縮、参照整理 |
npx claudepluginhub bigdra50/unity-cli --plugin unity-cliProfiles and optimizes Unity game performance using Profiler, Frame Debugger, Memory Profiler; covers CPU/GPU bottlenecks, GC reduction, object pooling, batching, LOD, occlusion culling, and platform tweaks.
Profiles and optimizes Unity projects using player-build evidence rather than editor intuition. Helps diagnose frame time, GC, memory, and loading issues.
Unity 6 performance profiling and optimization guide. Use when profiling, optimizing frame rate, reducing memory usage, debugging performance bottlenecks, or using the Profiler, Memory Profiler, or Frame Debugger. Based on Unity 6.3 LTS documentation.