An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# ๐Ÿš€ UnityCopilot

> ๐Ÿง  Your AI Copilot for Unity Development โ€” Built Right into the Editor

![MIT License](https://img.shields.io/badge/license-MIT-green)
![Unity](https://img.shields.io/badge/unity-2023%20LTS-blue)
![Status](https://img.shields.io/badge/status-Early%20Development-orange)

---

## ๐Ÿ“š 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 ๐Ÿš€