Search

PythonReactSEOPDF
GitHub Skill

unity-edit-component

编辑 GameObject 上的组件属性。

zoucdr☆ 41 Repository stars6 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill instructions

Unity MCP: edit_component

通过 args 传递参数。

参数 (args)

参数 类型 必填 说明
action string 是 操作: set_property, get_property, list_components
target string 是 目标 GameObject 路径
component string 是 组件类型名称
property string 否 属性名称
value any 否 要设置的属性值
  • set_property — 设置组件属性
  • get_property — 获取组件属性
  • list_components — 列出 GameObject 上的所有组件

示例参数

{ "action": "set_property", "target": "Player", "component": "Rigidbody", "property": "mass", "value": 1.5 }

响应

成功: { "success": true, "data": ... }. 失败: { "success": false, "message": "...", "error": "..." }.

Examples

Read the usage examples in the source repository.

View source ↗

Source history

Indexed on
2026-03-11
Index updated
2026-03-11
Branch
main

Index and sync dates describe this directory. View the source repository for code history.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!