Unity Editor extension for AI-assisted C# script generation, code questions, and basic code optimization within the Unity Editor.No additional compatibility info needed.Simple Unity AI Tool is a Unity Editor extension that allows developers to interact with AI models directly inside the Unity Editor. The tool can be used to generate C# scripts, ask Unity-related questions, and assist with code optimization using natural language input.Key FeaturesAI-Assisted Script GenerationGenerates C# scripts based on user inputDetects and extracts C# code blocks from AI responsesCreates scripts directly in the Unity projectSupports automatic attachment of scripts to GameObjectsProject Context AwarenessAccesses information about the current Unity projectConsiders existing scripts, GameObjects, and scene structureTakes the active Unity version into account when generating codeSupports drag and drop of GameObjects or scripts for additional contextMultiple AI Provider SupportOllama (local installation, no API key required)Groq (cloud-based, free tier available)OpenAIClaude (Anthropic)Google GeminiMistral AICohereAI providers can be selected and configured through the Settings window.Editor User InterfaceEditor window integrated into the Unity menuProgress indicators during request processingAdjustable font sizeConversation history retained during the editor sessionAutomatic detection of generated scripts with an option to apply themScript ManagementScripts are created in the Assets/Scripts/ folderUnity compilation is handled automaticallyPrevents duplicate component attachmentUndo support for editor actionsTypical Use CasesGenerating example or prototype scriptsAsking questions about Unity or C#Creating MonoBehaviour scripts for GameObjectsReviewing or refining existing codeIntended AudienceUnity developers of any experience levelDevelopers working on rapid prototypingUsers learning Unity or C#Teams looking to integrate AI assistance into the Unity EditorRequirementsUnity 2020.3 or laterAI Provider Requirements:Ollama: Local installation requiredCloud-based providers: API key requiredSupported providers may offer free or paid plans depending on the provider.Basic WorkflowImport the asset into the Unity projectOpen the tool via Window > SimpleUnityAIToolOptionally configure an AI provider in the Settings windowEnter a question or requestReview and apply generated scripts if applicablePrivacy and Data HandlingOllama operates entirely locallyAPI keys are stored locally using Unity EditorPrefsNo telemetry or analytics are collected by the assetNetwork requests are only made to the selected AI providerPlanned FeaturesContext-aware editor actions, such as interacting with GameObjects or scripts via context menus, are under development and may be included in a future update.Unity RequirementsUnity 2020.3 or later.NET Framework 4.7.1 or laterSupported platforms: Windows, macOS, LinuxFile StructureEditor scripts located in Assets/Editor/Main editor script: Assets/Editor/SimpleUnityAITool.csGenerated scripts are created in Assets/Scripts/DependenciesNo external Unity packages requiredUses System.Net.Http for network communicationUses Unity Editor APIs onlyAPI and Network RequirementsOllama: Local installation required and accessible via localhostCloud-based AI providers require HTTPS API accessAPI keys are stored locally using Unity EditorPrefsSupported AI ProvidersOllama (local)Groq (cloud)OpenAI (cloud)Claude (Anthropic, cloud)Google Gemini (cloud)Mistral AI (cloud)Cohere (cloud)Script GenerationGenerates C# scripts inside the Unity projectSupports MonoBehaviour and standard C# classesHandles Unity compilation automaticallySupports optional attachment of generated scripts to GameObjectsData StorageTool settings stored using Unity EditorPrefsNo external files or databases usedChat history stored in memory for the current editor sessionPerformanceUses asynchronous operations to avoid blocking the editorDisplays progress indicators during processingMonitors Unity compilation stateCompatibilityCompatible with all Unity render pipelinesCompatible with Unity Cloud BuildDesigned to avoid conflicts with other editor extensionsInstallation- Import the asset into the Unity project- Open the tool via Window > SimpleUnityAITool- Optionally configure an AI provider in the Settings window- Enter a question or request- Review and apply generated scripts if applicable




