Skip to content

Commit be77d7b

Browse files
committed
docs: remove duplicate MCP resource entries from README files
- Ensured README consistency across all language versions - Maintained proper formatting and example prompts for each resource
1 parent 10e3ef1 commit be77d7b

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

Editor/UnityBridge/McpUnityEditorWindow.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,15 @@ private void DrawHelpTab()
334334
EditorGUILayout.EndVertical();
335335
EditorGUILayout.Space();
336336

337+
// update_gameobject
338+
WrappedLabel("update_gameobject", EditorStyles.boldLabel);
339+
WrappedLabel("Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not exist");
340+
EditorGUILayout.BeginVertical(EditorStyles.helpBox);
341+
EditorGUILayout.LabelField("Example prompt:", EditorStyles.miniLabel);
342+
WrappedLabel("Set the Player object's tag to 'Enemy' and make it inactive", new GUIStyle(EditorStyles.miniLabel) { fontStyle = FontStyle.Italic });
343+
EditorGUILayout.EndVertical();
344+
EditorGUILayout.Space();
345+
337346
// update_component
338347
WrappedLabel("update_component", EditorStyles.boldLabel);
339348
WrappedLabel("Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component");
@@ -447,6 +456,7 @@ private void DrawHelpTab()
447456
EditorGUILayout.LabelField("Example prompt:", EditorStyles.miniLabel);
448457
WrappedLabel("List all available tests in my Unity project", new GUIStyle(EditorStyles.miniLabel) { fontStyle = FontStyle.Italic });
449458
EditorGUILayout.EndVertical();
459+
EditorGUILayout.Space();
450460

451461
EditorGUILayout.EndVertical();
452462

README-ja.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ MCP Unityは、Unityの`Library/PackedCache`フォルダーをワークスペー
6767
- `select_gameobject`: パスまたはインスタンスIDでUnity階層内のゲームオブジェクトを選択
6868
> **例:** "シーン内のMain Cameraオブジェクトを選択"
6969
70+
- `update_gameobject`: GameObject のコアプロパティ(名前、タグ、レイヤー、アクティブ/静的状態)を更新、または存在しない場合は作成します
71+
> **例:** "Playerオブジェクトのタグを ‘Enemy’ に設定し、非アクティブにする"
72+
7073
- `update_component`: GameObject上のコンポーネントフィールドを更新、またはGameObjectに含まれていない場合は追加
7174
> **例:** "PlayerオブジェクトにRigidbodyコンポーネントを追加し、その質量を5に設定"
7275
@@ -96,14 +99,14 @@ MCP Unityは、Unityの`Library/PackedCache`フォルダーをワークスペー
9699
- `unity://logs`: Unityコンソールからのすべてのログのリストを取得
97100
> **例:** "Unityコンソールからの最近のエラーメッセージを表示"
98101
99-
- `unity://packages`: Unityパッケージマネージャーからインストール済みおよび利用可能なパッケージに関する情報を取得
100-
> **例:** "Unityプロジェクトに現在インストールされているすべてのパッケージをリスト"
102+
- `unity://packages`: Unityパッケージマネージャーからインストール済みおよび利用可能なパッケージ情報を取得
103+
> **例:** "プロジェクトに現在インストールされているすべてのパッケージをリスト"
101104
102-
- `unity://assets`: Unityアセットデータベース内のアセットに関する情報を取得
105+
- `unity://assets`: Unityアセットデータベース内のアセット情報を取得
103106
> **例:** "プロジェクト内のすべてのテクスチャアセットを検索"
104107
105-
- `unity://tests/{testMode}`: Unityテストランナー内のテストに関する情報を取得
106-
> **例:** "Unityプロジェクトで利用可能なすべてのテストをリスト"
108+
- `unity://tests/{testMode}`: Unityテストランナー内のテスト情報を取得
109+
> **例:** "プロジェクトで利用可能なすべてのテストをリスト"
107110
108111
## 要件
109112
- Unity 2022.3以降 - [サーバーをインストール](#install-server)するため

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,17 @@ MCP Unity provides automatic integration with VSCode-like IDEs (Visual Studio Co
6161

6262
### MCP Server Tools
6363

64+
The following tools are available for manipulating and querying Unity scenes and GameObjects via MCP:
65+
6466
- `execute_menu_item`: Executes Unity menu items (functions tagged with the MenuItem attribute)
6567
> **Example prompt:** "Execute the menu item 'GameObject/Create Empty' to create a new empty GameObject"
6668
6769
- `select_gameobject`: Selects game objects in the Unity hierarchy by path or instance ID
6870
> **Example prompt:** "Select the Main Camera object in my scene"
6971
72+
- `update_gameobject`: Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not exist
73+
> **Example prompt:** "Set the Player object's tag to 'Enemy' and make it inactive"
74+
7075
- `update_component`: Updates component fields on a GameObject or adds it to the GameObject if it does not contain the component
7176
> **Example prompt:** "Add a Rigidbody component to the Player object and set its mass to 5"
7277

README_zh-CN.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ MCP Unity 通过将 Unity `Library/PackedCache` 文件夹添加到您的工作
6969
- `select_gameobject`: 通过路径或实例 ID 选择 Unity 层次结构中的游戏对象
7070
> **示例提示:** "选择场景中的 Main Camera 对象"
7171
72+
- `update_gameobject`: 更新 GameObject 的核心属性(名称、标签、层、激活/静态状态),如果不存在则创建
73+
> **示例提示:** "将 Player 对象的标签设置为 ‘Enemy’ 并使其不可用"
74+
7275
- `update_component`: 更新 GameObject 上的组件字段,如果 GameObject 不包含该组件则添加它
7376
> **示例提示:** "给 Player 对象添加 Rigidbody 组件并设置其质量为 5"
7477
@@ -96,7 +99,7 @@ MCP Unity 通过将 Unity `Library/PackedCache` 文件夹添加到您的工作
9699
> **示例提示:** "获取 Player GameObject 的详细信息"
97100
98101
- `unity://logs`: 获取 Unity 控制台的所有日志列表
99-
> **示例提示:** "显示 Unity 控制台最近的错误消息"
102+
> **示例提示:** "显示 Unity 控制台最近的错误信息"
100103
101104
- `unity://packages`: 从 Unity 包管理器获取已安装和可用包的信息
102105
> **示例提示:** "列出我 Unity 项目中当前安装的所有包"

0 commit comments

Comments
 (0)