返回目录

unity-plugin

编辑精选维护状态: 活跃

opdsh/unity-plugin

DeepSeek Harness 插件:通过 unity CLI 控制 Unity 编辑器。

前往 GitHub
$ dsh plugin --profile <name> add @opdsh/unity-plugin

32

星标

0

Fork

TypeScript

语言

MIT

许可证

2026-08-28

创建于

2026-09-04

最近推送

一个原生 DeepSeek Harness 插件,把 Unity 编辑器变成由智能体驱动的工作区:与编辑器对话、编写并挂载 C# 脚本、导入你的资产商店资源、运行测试与构建——全部通过 Unity 官方 `unity` 命令行工具完成。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-09-06

许可证

MIT

01它能帮你完成什么?

  • Build a complete Unity game from a natural-language brief inside DeepSeek Harness

    A running Unity Editor project — scenes, attached C# scripts, imported assets, tests, and player builds

    Game developers and teams using DeepSeek Harness who want an agent to drive the Unity Editor

  • Edit a live Unity project by talking — add GameObjects, attach components, write gameplay C#

    Edited scene graph and attached scripts, with recompile waits handled automatically by the agent

    Developers iterating on a live Unity project through conversation instead of manual clicks

  • Use your owned Unity Asset Store purchases inside the open project

    Searched, downloaded, and silently imported `.unitypackage` assets into the running project

    Developers who own Asset Store assets and want the agent to import them on Windows or macOS

02如何接入 DeepSeek Harness?

前置条件

  • DeepSeek Harness 0.1.2-alpha.5 or newer (older versions are not supported)
  • The `unity` command-line tool, installed, signed in, and with an activated license
  • Unity 6.0 or newer installed through the Unity Hub (live Editor control requires Unity 6)
  • Python 3.9 or newer (only needed for the Asset Store feature)

安装步骤

  1. 01

    $ dsh plugin --profile <name> add @opdsh/unity-plugin

  2. 02

    $ dsh --profile <name>

验证接入成功

  • Run `dsh --profile <name> --dump-config` and look for the `# == unity-plugin` section to confirm the plugin loaded

03DSH 适配与能力边界

DSH 适配原生运行时

Native DSH plugin loaded by the dsh Loader (Node + browser halves); drives the Unity Editor over Unity's official `unity` CLI

  • Live Editor command (unity_command)

    an Editor command name such as create_gameobject, get_scene_hierarchy, or save_scenethe live Editor command result as structured JSON

    Every invocation passes `--non-interactive`, so a command that needs interactive input fails loudly instead of hanging the agent
  • Run C# inside the Editor (unity_eval)

    a C# snippetC# executed with full UnityEngine and UnityEditor access inside the running Editor

    Executes C# with full UnityEngine/UnityEditor access in the running Editor
  • CLI passthrough (unity_cli)

    any `unity` CLI subcommand (projects, open, pipeline install, templates, editors, test, build, auth, license, logs)raw CLI output for long-running builds and tests

    Spawns one CLI process per call; long builds and tests stream raw output
  • Unity official skills bundled

    the bundled Unity-Technologies/skills collectionunity-cli, new-unity-project, build-live-game, UI, package management, physics, optimization, multiplayer skills

    Downloads Unity's official skills once per ref into the dsh cache; a failed download falls back to an existing cache

04适合谁?何时不该用?

适合

  • Game developers and teams using DeepSeek Harness who want an agent to drive the Unity Editor
  • Developers iterating on a live Unity project through conversation instead of manual clicks
  • Developers who own Asset Store assets and want the agent to import them on Windows or macOS

不适合

  • The Asset Store import feature works on Windows and macOS only; Linux is not supported yet.

05兼容性、维护与安全提示

  • The Editor command set is discovered at runtime; the plugin does not pin or validate per-command parameter schemas.
  • The Asset Store import feature works on Windows and macOS only; Linux is not supported yet.
  • `unity_cli` starts one CLI process per call by design; only the four live-Editor tools share the warm session.
  • An open Editor holds a Unity license seat until it closes.
作者未说明作者未说明作者未说明

readme_verified

06常见问题

如何安装 unity-plugin?

把它加入你使用的 DeepSeek Harness 配置档:运行 `dsh plugin --profile <name> add @opdsh/unity-plugin`,再运行 `dsh --profile <name>`。用 `dsh --profile <name> --dump-config` 确认加载,查找 `# == unity-plugin` 段落即可。

智能体在 Unity 编辑器里能做什么?

它可以创建工程与场景、添加 GameObject 与组件、编写并挂载 C# 脚本、通过 `unity_eval` 执行 C#、导入已拥有的资产商店资源、截屏、进入 Play 模式、运行测试并启动玩家构建。

需要 Unity 许可证吗?

需要。`unity` 命令行工具必须已安装、登录并激活许可证——用 `unity auth status` 与 `unity license status` 检查。实时编辑器控制要求通过 Unity Hub 安装 Unity 6.0 或更新版本。

智能体能用我的资产商店已购资源吗?

可以,但仅支持 Windows 与 macOS。智能体会用你的 Unity 账号登录,搜索“我的资源”库,下载 `.unitypackage` 并无提示导入到当前打开的工程。Linux 暂不支持。

需要哪个版本的 DeepSeek Harness?

需要 DeepSeek Harness 0.1.2-alpha.5 或更新版本,旧版本不受支持。该插件由 dsh Loader 作为原生插件加载(含 Node 与浏览器两部分)。

08数据与来源

  • 作者声明github.com78de95fbd6ba…

    **Build Unity games with an AI agent.** This plugin connects [DeepSeek Harness]

  • 作者声明github.com78de95fbd6ba…

    dsh plugin --profile <name> add @opdsh/unity-plugin

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-09-06。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。