AI-Powered Unity Script Generator - Transform natural language into production-ready C# scripts directly in Unity Editor.
UnityScriptAI revolutionizes Unity game development by enabling developers to generate complete, documented, and production-ready C# scripts using plain English prompts. No more hours spent on boilerplate code - just describe what you need, and let AI handle the implementation.
- ๐ค AI Script Generation - Generate Unity C# scripts using natural language
- ๐จ Unity Editor Integration - Seamless workflow directly in Unity
- ๐ 6 Preset Templates - Common game patterns ready to use
- ๐ง Auto-Fix/Debug Mode - AI-powered error detection and correction
- ๐ฏ Scene Setup Automation - Automatic GameObject and component configuration
- ๐ฌ Animator Integration - Generate Animator Controllers automatically
- ๐ฌ AI Chat Assistant - Conversational coding help
- ๐ค Voice Input - Describe scripts using your voice
- โจ Inspector AI Hints - Context-aware help in Unity Inspector
- Open Unity 2021.3 LTS or higher
- Go to Window โ Package Manager
- Click "+" โ "Add package from git URL"
- Enter:
https://github.com/abhi9199-tech42/unityscript-ai.git - Click "Add"
- Download the latest release from Releases
- Import the
.unitypackagefile into your project - Or extract the source to your
Assetsfolder
- Open Window โ AI Script Generator
- Configure your AI provider (Gemini or OpenAI)
- Enter your API key
- Type a prompt: "Create a 3D player controller with WASD movement and jump"
- Click Generate
- Review the code and click Save to Project
- Attach the script to your GameObject
That's it! You just created a complete player controller in under 60 seconds.
"Create a 2D platformer character with double jump and wall slide"
"Make an enemy AI that patrols between waypoints and chases the player when nearby"
"Build an inventory system with drag-and-drop UI and item stacking"
"Generate a health system with damage, healing, and death events"
"Create a day/night cycle with dynamic lighting"
- Installation Guide - Complete setup instructions
- Quick Start Tutorial - Get started in 5 minutes
- API Key Setup - Configure Gemini or OpenAI
- Complete Features Guide - All features explained
- Script Generation Guide - Advanced generation
- Scene Setup Guide - Automatic scene configuration
- Animator Integration - Generate animator controllers
- Inspector Hints - AI-powered inspector help
- Voice Input Guide - Speech-to-text features
- Troubleshooting Guide - Common issues and solutions
- FAQ - Frequently asked questions
- Unity Version: 2021.3 LTS or higher
- Operating System: Windows 10+, macOS 10.15+, Linux (Ubuntu 20.04+)
- .NET: Standard 2.1 / Framework 4.x
- Internet: Required for AI features
- Disk Space: 50MB
UnityScriptAI supports multiple AI providers:
- Free tier: 60 requests/minute
- Get API key: Google AI Studio
- Paid service with free trial
- Get API key: OpenAI Platform
- Learn Unity programming through AI-generated examples
- Overcome coding barriers and build your first game
- Understand best practices through documented code
- Rapid prototyping for game jams and client pitches
- Save 10+ hours per week on boilerplate code
- Focus on unique game mechanics, not repetitive tasks
- Teach game development with modern AI tools
- Provide students with instant coding assistance
- Create course materials faster
- Generate working examples for tutorials quickly
- Demonstrate game mechanics in real-time
- Maintain consistent upload schedules
Assets/UnityScriptAI/
โโโ Editor/
โ โโโ Windows/
โ โ โโโ AIScriptGeneratorWindow.cs
โ โ โโโ GenerationHistoryWindow.cs
โ โ โโโ ChatWindow.cs
โ โโโ Inspectors/
โ โ โโโ CustomInspectorAI.cs
โ โโโ SceneSetupAutomation.cs
โ โโโ SecurityVerification.cs
โโโ Scripts/
โ โโโ ScriptGenerator.cs
โ โโโ PromptProcessor.cs
โ โโโ AnimatorGenerator.cs
โ โโโ InstructionGenerator.cs
โโโ Documentation/
โ โโโ README.md
โ โโโ QuickStart.md
โ โโโ Features.md
โ โโโ ...
โโโ package.json
We welcome contributions! Here's how you can help:
- Report Bugs - Open an issue with detailed reproduction steps
- Suggest Features - Share your ideas in the discussions
- Submit Pull Requests - Fix bugs or add features
- Improve Documentation - Help others learn the tool
- Share Your Experience - Write tutorials or create videos
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with โค๏ธ by Abhinav
- Powered by Google Gemini and OpenAI
- Inspired by the Unity developer community
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@unityscriptai.com
If UnityScriptAI helps your development workflow, please:
- โญ Star this repository
- ๐ฆ Share on social media
- ๐ Write a review
- ๐ฅ Create a tutorial
Made with โค๏ธ for the Unity Community