Skip to content

UnityScriptAI: AI-powered Unity Editor Extension that generates production-ready C# scripts from natural language. Features: 6 preset templates, auto-fix errors, scene setup automation, animator integration, voice input, AI chat assistant. Supports Gemini & OpenAI. Perfect for beginners & pros!

License

Notifications You must be signed in to change notification settings

abhi9199-tech42/unityscript-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

UnityScriptAI

Unity Version License Version

AI-Powered Unity Script Generator - Transform natural language into production-ready C# scripts directly in Unity Editor.


๐Ÿš€ Overview

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.

โœจ Key Features

  • ๐Ÿค– 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

๐Ÿ“ฆ Installation

Via Unity Package Manager (Recommended)

  1. Open Unity 2021.3 LTS or higher
  2. Go to Window โ†’ Package Manager
  3. Click "+" โ†’ "Add package from git URL"
  4. Enter: https://github.com/abhi9199-tech42/unityscript-ai.git
  5. Click "Add"

Manual Installation

  1. Download the latest release from Releases
  2. Import the .unitypackage file into your project
  3. Or extract the source to your Assets folder

๐ŸŽฏ Quick Start

  1. Open Window โ†’ AI Script Generator
  2. Configure your AI provider (Gemini or OpenAI)
  3. Enter your API key
  4. Type a prompt: "Create a 3D player controller with WASD movement and jump"
  5. Click Generate
  6. Review the code and click Save to Project
  7. Attach the script to your GameObject

That's it! You just created a complete player controller in under 60 seconds.


๐ŸŽฎ Example Prompts

"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"

๐Ÿ“š Documentation

Getting Started

Feature Guides

Help & Support


๐Ÿ› ๏ธ System Requirements

  • 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

๐Ÿ”‘ API Configuration

UnityScriptAI supports multiple AI providers:

Gemini (Recommended)

OpenAI


๐ŸŽ“ Use Cases

For Beginners

  • Learn Unity programming through AI-generated examples
  • Overcome coding barriers and build your first game
  • Understand best practices through documented code

For Professionals

  • Rapid prototyping for game jams and client pitches
  • Save 10+ hours per week on boilerplate code
  • Focus on unique game mechanics, not repetitive tasks

For Educators

  • Teach game development with modern AI tools
  • Provide students with instant coding assistance
  • Create course materials faster

For Content Creators

  • Generate working examples for tutorials quickly
  • Demonstrate game mechanics in real-time
  • Maintain consistent upload schedules

๐Ÿ—๏ธ Project Structure

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

๐Ÿค Contributing

We welcome contributions! Here's how you can help:

  1. Report Bugs - Open an issue with detailed reproduction steps
  2. Suggest Features - Share your ideas in the discussions
  3. Submit Pull Requests - Fix bugs or add features
  4. Improve Documentation - Help others learn the tool
  5. Share Your Experience - Write tutorials or create videos

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments

  • Built with โค๏ธ by Abhinav
  • Powered by Google Gemini and OpenAI
  • Inspired by the Unity developer community

๐Ÿ“ž Support


๐ŸŒŸ Show Your Support

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

About

UnityScriptAI: AI-powered Unity Editor Extension that generates production-ready C# scripts from natural language. Features: 6 preset templates, auto-fix errors, scene setup automation, animator integration, voice input, AI chat assistant. Supports Gemini & OpenAI. Perfect for beginners & pros!

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published