
An editor extension for project-aware code generation and game object manipulation. It works with C# scripts, shaders, and game objects, optimizing tedious tasks. Supports offline use via Ollama.Code Buddy is a Unity editor extension designed to accelerate development by integrating a project-aware AI into your workflow. It analyzes your existing codebase and scene to produce C# scripts and shaders that correctly use your classes and methods, reducing the need for manual refactoring.You can also use it to find specific code snippets or understand how different parts of your project are connected.The tool automates editor tasks such as configuring components, assigning references, or prototyping scene layouts without significant manual input.An updated context analysis system now supports larger projects, improves generation accuracy, and helps lower your API token consumption for a more efficient workflow, or you can work entirely offline using local models via Ollama.🚀 Project-Aware Code GenerationLeveraging AI models and your project's context, Code Buddy generates functional C# code and shaders consistent with Unity's code style. It analyzes your existing codebase to ensure generated scripts integrate correctly, reducing the need for manual adjustments and context-setting compared to standard AI assistants.🤖 Scene & GameObject AutomationManipulate your scene directly with text prompts. Automate tasks like placing prefabs, configuring components, and assigning object references to accelerate level prototyping and reduce click-heavy editor work.💬 Integrated Code Chat & AnalysisUse the integrated chat interface to discuss specific code blocks, request refactoring suggestions, or get explanations of complex logic. Useful for understanding inherited code or exploring different implementation approaches.🏷️ Flexible LLM Usage (No Subscription)Code Buddy is a one-time purchase with no subscription. It works with your own API keys for services like OpenAI, DeepSeek, Gemini, and Claude, which gives you direct control over your API usage and costs. For completely offline and private use, the tool also supports local models running via Ollama.🎮 Unity-first workflowPerform code generation, modification, and analysis tasks directly within the Unity Editor UI. This approach minimizes workflow disruption by reducing context-switching. The generated code adheres to standard Unity C# conventions for readability and maintainability.🎓 Accessible PromptingThe tool is designed to be effective with straightforward, natural language prompts, not requiring advanced prompt engineering for standard tasks. For more complex problems, you can iterate on your request within the chat, refining the approach and exploring solutions before generating the final code.🌍 Proxy supportFor users in regions where an LLM provider may be inaccessible, Code Buddy includes built-in proxy support. You can configure the tool to route all API requests through a specified proxy server.🛡 Local Context Processing & PrivacyAll project context analysis occurs locally on your machine; your codebase is never uploaded. Only the specific prompt and necessary context are sent to the selected AI provider. Your API keys are encrypted and stored locally. Using a local models via Ollama allows for a fully offline workflow where no data is sent externally.⚠️ IMPORTANT ⚠️Requires user setup of one of the following:1. OpenAI API Key. It does not work with ChatGPT Plus subscription.2. DeepSeek API Key.4. Gemini API Key.5. Claude AI API Key.3. Ollama installed locallyJOIN DISCORD | DOCUMENTATION | YOUTUBEFeaturesGenerating new scriptsModifying existing codeRefactoringBugfixingChat and brainstormCode explanationCreation and modification of the game objectsComponent values and references assignmentImage input supportOffline mode with OllamaProxy supportSupported providersOpenAIGeminiDeepSeekClaudeOllamaSupported Unity version2021.32022.360006000.16000.2It most likely works with any version in between, we just didn't test them all.