You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MCPForUnity/UnityMcpServer~/src/tools/manage_gameobject.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
@mcp_for_unity_tool(
9
9
description="Manage GameObjects. Note: for 'get_components', the `data` field contains a dictionary of component names and their serialized properties. For 'get_component', specify 'component_name' to retrieve only that component's serialized data."
10
10
)
11
-
defmanage_gameobject(
11
+
asyncdefmanage_gameobject(
12
12
ctx: Context,
13
13
action: Annotated[Literal["create", "modify", "delete", "find", "add_component", "remove_component", "set_component_property", "get_components", "get_component"], "Perform CRUD operations on GameObjects and components."],
14
14
target: Annotated[str,
@@ -64,7 +64,7 @@ def manage_gameobject(
64
64
includeNonPublicSerialized: Annotated[bool,
65
65
"Controls whether serialization of private [SerializeField] fields is included"] |None=None,
uri: Annotated[str, "URI of the script to edit under Assets/ directory, unity://path/Assets/... or file://... or Assets/..."],
81
81
edits: Annotated[list[dict[str, Any]], "List of edits to apply to the script, i.e. a list of {startLine,startCol,endLine,endCol,newText} (1-indexed!)"],
@@ -86,7 +86,7 @@ def apply_text_edits(
86
86
options: Annotated[dict[str, Any],
87
87
"Optional options, used to pass additional options to the script editor"] |None=None,
0 commit comments