https://github.com/gamedevkaran/unitycopilot
๐ AI-powered Unity development assistant that integrates directly into the Unity Editor. Generate scripts, build scenes, and audit projects using natural language prompts. Built with Unity 2023 LTS + UIToolkit.
https://github.com/gamedevkaran/unitycopilot
ai artificial-intelligence automation code-generation copilot csharp editor-extension game-development openai unity-editor unity-tools unity3d
Last synced: 6 months ago
JSON representation
๐ AI-powered Unity development assistant that integrates directly into the Unity Editor. Generate scripts, build scenes, and audit projects using natural language prompts. Built with Unity 2023 LTS + UIToolkit.
- Host: GitHub
- URL: https://github.com/gamedevkaran/unitycopilot
- Owner: GameDevKaran
- License: mit
- Created: 2025-07-01T05:58:03.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-07-01T06:51:05.000Z (6 months ago)
- Last Synced: 2025-07-01T07:25:33.461Z (6 months ago)
- Topics: ai, artificial-intelligence, automation, code-generation, copilot, csharp, editor-extension, game-development, openai, unity-editor, unity-tools, unity3d
- Homepage:
- Size: 192 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ UnityCopilot
> ๐ง Your AI Copilot for Unity Development โ Built Right into the Editor



---
## ๐ Table of Contents
- [About](#-about)
- [Demo](#-demo)
- [Features](#-features)
- [Getting Started](#-getting-started)
- [Configuration](#-configuration)
- [Architecture](#-architecture)
- [Contributing](#-contributing)
- [License](#-license)
- [Stay Connected](#-stay-connected)
---
## ๐ก About
**UnityCopilot** is an open-source AI assistant designed for Unity developers.
It integrates directly into the Unity Editor to help you:
* Generate scripts and logic via prompts
* Build scenes and connect components intelligently
* Audit your project and fix common issues
* Learn Unity concepts with explainable AI
> ๐งโ๐ป Think of it as your **AI-powered senior dev sitting next to you**
---
## โจ Features
๐งช MVP Features
- ๐ง Prompt-based MonoBehaviour/script generation
- ๐งฑ Prefab/Component placement from prompt
- ๐ Project audit: detect broken scripts, references
- ๐ Plug-and-play AI adapters (OpenAI, Claude, Gemini)
- ๐งฐ Built with Unity 2023 LTS + UIToolkit Editor UI
๐ ๏ธ Upcoming Features
- ๐ฎ Guided scene assembly (e.g., Tower Defense builder)
- ๐ Design pattern templates (Singleton, MVVM, etc.)
- ๐งช Test stub generation
- ๐ Refactor + explain existing code
- ๐ฆ Unused asset detector
---
## ๐ฌ Demo
*Coming soon: Screenshots and demo videos of UnityCopilot in action*
---
## ๐ Getting Started
### ๐ Prerequisites
- Unity 2023 LTS or later (Unity 6.x recommended)
- Git installed on your system
- Basic knowledge of Unity Editor
### ๐งฐ Installation
1. **Clone the repository:**
```bash
git clone https://github.com/GameDevKaran/UnityCopilot.git
cd UnityCopilot
```
2. **Open in Unity:**
- Open Unity Hub
- Click "Add" and select the cloned UnityCopilot folder
- Open the project in Unity (the Unity project is named "UnityPilot")
3. **Access UnityCopilot:**
- In Unity Editor, go to `Window > UnityPilot`
- The UnityCopilot panel will open
4. **Start using:**
- Enter a prompt like: *"Create a script that spawns a cube every 2 seconds"*
- Watch UnityCopilot generate and apply the code!
---
## ๐ Configuration
### AI Provider Setup (Coming Soon)
UnityCopilot will support multiple AI providers:
- **OpenAI GPT** (GPT-4, GPT-3.5)
- **Anthropic Claude**
- **Google Gemini**
- **Local models** (via Ollama)
Configuration will be available directly in the Unity Editor.
---
## ๐ง Architecture
Click to Expand ๐
### ๐ Folder Structure
```
Assets/
โโโ UnityCopilot/
โโโ Editor/
โโโ UI/ # Unity Editor window (UIToolkit)
โโโ Core/ # Prompt handler & templates
โโโ AI/ # OpenAI, Claude adapters
โโโ CodeGen/ # Script creation logic
โโโ SceneTools/ # Prefab placement, audits
```
### ๐ Data Flow
```
[UnityCopilot Window] โ [Prompt Handler] โ [AI Adapter] โ [Code Generator] โ [Scene Manager]
```
๐ See: `Docs/UnityCopilot_Design_Document.pdf`
---
## ๐ค Contributing
We welcome contributions! UnityCopilot is currently under active development, but we're open to:
- ๐ **Bug reports** - Help us identify and fix issues
- ๐ก **Feature suggestions** - Share your ideas for new functionality
- ๐ **Documentation** - Improve our guides and examples
- ๐งช **Testing** - Try out new features and provide feedback
### Getting Started with Contributing
1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request
๐ฌ **Want to discuss ideas?** [Open a Discussion](https://github.com/GameDevKaran/UnityCopilot/discussions)
For more details, see our `CONTRIBUTING.md` (coming soon).
---
## โ ๏ธ Disclaimer
**UnityCopilot is in early development.** This is an active work-in-progress project. Current functionality is limited, and the codebase is evolving rapidly. Star โญ the repo to follow development progress!
---
## ๐ License
This project is licensed under the **MIT License**.
You're free to use, modify, and share โ just credit the original authors.
---
## ๐ Stay Connected
Follow updates and progress on:
* [GitHub Repository](https://github.com/GameDevKaran/UnityCopilot)
* [Discussions](https://github.com/GameDevKaran/UnityCopilot/discussions)
> Made with โค๏ธ for the Unity community ๐