Getting Started¶
Prerequisites¶
- Cursor IDE installed
- Python 3.10+ (for MCP server tools)
- Unity 6.3 LTS or later (for building actual Unity projects)
Installation¶
The plugin is installed once into Cursor's local plugins folder. You then open your own Unity project in Cursor, not this repository.
- Clone the plugin into Cursor's local plugins folder:
macOS / Linux:
git clone https://github.com/TMHSDigital/Unity-Developer-Tools.git ~/.cursor/plugins/local/unity-developer-tools
Windows (PowerShell):
git clone https://github.com/TMHSDigital/Unity-Developer-Tools.git "$env:USERPROFILE\.cursor\plugins\local\unity-developer-tools"
Or download the zip from the latest release and extract it into that same folder, so that .cursor-plugin/plugin.json sits directly inside unity-developer-tools/. Do not extract it into a Unity project.
-
Install the MCP server dependencies with the same Python that
On Windows, usepythonruns:"$env:USERPROFILE\.cursor\plugins\local\unity-developer-tools\mcp-server\requirements.txt". -
Restart Cursor, or run Developer: Reload Window from the command palette.
-
Open your Unity project folder (the one containing
Assets/andProjectSettings/) with File > Open Folder.
Verify it works¶
- Open Customize in the Cursor sidebar. Unity Developer Tools should be listed with its skills, rules, and the
unity-dev-toolsMCP server. - Open any
.csfile in your project. The C# rules apply to it automatically. - Ask the agent: "What are the scripting defines for WebGL?" It should call the
platform_infotool and answer withUNITY_WEBGL.
Updating¶
Run git pull inside ~/.cursor/plugins/local/unity-developer-tools, then reload Cursor. If you installed from a zip, replace the folder with the new release.
Using Skills¶
Skills provide AI context when working with specific file types. For example:
- Open a
.csfile and the AI knows about MonoBehaviour lifecycle, performance rules, and naming conventions - Open a
.shaderfile and the AI knows about HLSL conventions, SRP Batcher, and URP includes - Ask the AI to "create a player controller" and it will use the project-setup and MonoBehaviour skills
Using Rules¶
Rules are automatically applied based on file type:
- C# rules (conventions, lifecycle, performance, naming, serialization): attached when a
.csfile is in context - Shader rules: attached for
.shader,.hlsl,.cginc, and.shadergraphfiles - Visual Scripting rules: attached for Script Graph and State Graph assets
- Security and builds: attached for
.csfiles,Packages/manifest.json, andProjectSettings.asset
No rule is always on, so non-Unity work in the same workspace does not pick up Unity guidance.
Using Snippets¶
Reference snippets when asking the AI for code patterns:
- "Use the singleton pattern from the snippets"
- "Create an object pool like the snippet"
- "Set up input handling following the input system snippet"
Using Templates¶
Templates provide complete starter projects:
- Copy a template folder into your Unity project's Assets directory
- The scripts are ready to attach to GameObjects
- Follow the README in each template for setup instructions
Using MCP Tools¶
Ask the AI to use MCP tools naturally:
- "Scaffold a MonoBehaviour called PlayerHealth"
- "Look up the Rigidbody API"
- "Show me shader properties for a dissolve effect"
- "What are the platform limitations for WebGL?"
Troubleshooting¶
The plugin does not appear in Customize
- Check the path: .cursor-plugin/plugin.json must be at ~/.cursor/plugins/local/unity-developer-tools/.cursor-plugin/plugin.json. A zip extracted into an extra nested folder will not load.
- Symlinks are skipped when they point to a folder outside ~/.cursor/plugins/local. Clone or copy the plugin into that folder instead.
- On Cursor Teams or Enterprise, an admin must enable Allow Local Plugin Imports (Dashboard > Settings > Security & Identity > Marketplace and Plugins).
- Reload the window after installing.
The unity-dev-tools MCP server shows an error or no tools
- python must be on your PATH. Run python --version; it must report 3.10 or newer. On macOS, if only python3 exists, install Python from python.org or a package manager that provides python.
- ModuleNotFoundError: No module named 'mcp': install the requirements with the same interpreter, using python -m pip install -r .../mcp-server/requirements.txt.
- Missing data file: the plugin folder is incomplete. Re-clone it or extract the release zip again.
Rules do not apply to my scripts
- Make sure the Cursor workspace is your Unity project, not the plugin repository. Rules are matched against files in the open workspace (for example, **/*.cs).
Unity reports compile errors after copying files
- Copy individual snippets or a single template folder into Assets/, never the whole plugin. Each template README lists the packages it needs, such as the Input System.
Next Steps¶
- Explore the Architecture to understand plugin structure
- Check the Roadmap for upcoming features
- Read Contributing if you want to help improve the plugin