# Unity Api

> |

- **Type:** Skill
- **Install:** `agentstack add skill-bigdra50-unity-cli-unity-api`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [bigdra50](https://agentstack.voostack.com/s/bigdra50)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [bigdra50](https://github.com/bigdra50)
- **Source:** https://github.com/bigdra50/unity-cli/tree/main/skills/unity-api

## Install

```sh
agentstack add skill-bigdra50-unity-cli-unity-api
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# unity-api

> **PREREQUISITE:** `../unity-shared/SKILL.md`（Relay Server 経由で Unity Editor が起動/アクティブであること）
>
> skill 経由のコマンドは必ず `-i ` を付ける (unity-shared #インスタンス指定)。`--offline` オプションのみ Relay 不要 = `-i` 不要。

## メソッド検索

```bash
u -i  api schema --type AssetDatabase          # 型名でフィルタ
u -i  api schema --namespace UnityEditor       # 名前空間でフィルタ
u -i  api schema --method Refresh              # メソッド名で検索
u api schema --offline --type PlayerSettings              # キャッシュから (Relay 不要なので -i 不要)
```

## メソッド呼び出し

```bash
u -i  api call UnityEngine.Application get_unityVersion
u -i  api call UnityEditor.AssetDatabase Refresh
u -i  api call UnityEditor.AssetDatabase ImportAsset --params '["Assets/Prefabs/Player.prefab", 0]'
u -i  api call UnityEditor.EditorApplication ExecuteMenuItem --params '["Window/General/Console"]'
```

## よく使うパターン

| 用途 | コマンド |
|------|---------|
| プロジェクト設定 | `u -i  api call UnityEditor.PlayerSettings get_productName` |
| コンパイル状態 | `u -i  api call UnityEditor.EditorApplication get_isCompiling` |
| アセット存在確認 | `u -i  api call UnityEditor.AssetDatabase AssetPathExists --params '["Assets/..."]'` |
| フォルダ作成 | `u -i  api call UnityEditor.AssetDatabase CreateFolder --params '["Assets", "New"]'` |
| メニュー実行 | `u -i  api call UnityEditor.EditorApplication ExecuteMenuItem --params '["Tools/..."]'` |

## 制約

- static メソッドのみ
- 引数: プリミティブ, string, enum, プリミティブ配列
- UnityEngine / UnityEditor 名前空間のみ
- [Obsolete] メソッドは除外済み

## 既存コマンドとの使い分け

既存コマンド (`u scene`, `u build` 等) がある操作はそちらを使う。`u api` は既存コマンドがカバーしない操作のためのフォールバック。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [bigdra50](https://github.com/bigdra50)
- **Source:** [bigdra50/unity-cli](https://github.com/bigdra50/unity-cli)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-bigdra50-unity-cli-unity-api
- Seller: https://agentstack.voostack.com/s/bigdra50
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
