Unity Ai Assistant avatar
Unity Ai Assistant

Pricing

Pay per event

Go to Apify Store
Unity Ai Assistant

Unity Ai Assistant

AI-powered Unity development assistant running as an mcp Actor. Generate C# scripts, create shaders, query LLMs (GPT-4, Claude, Gemini), analyze code, and manage Unity Cloud Services - all through a simple API.

Pricing

Pay per event

Rating

0.0

(0)

Developer

christopher athans crow

christopher athans crow

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

a day ago

Last modified

Share

Unity AI Assistant - Apify Actor

© Christopher Athans Crow. All rights reserved.

AI-powered Unity development assistant running as an Apify Actor. Generate C# scripts, create shaders, query LLMs (GPT-4, Claude, Gemini), analyze code, and manage Unity Cloud Services - all through a simple API.

Features

🎮 Unity Script Generation

  • Generate C# MonoBehaviour scripts
  • Create custom components
  • Generate Editor scripts
  • ScriptableObject templates

🎨 Shader Creation

  • Built-in render pipeline shaders
  • Universal Render Pipeline (URP)
  • High Definition Render Pipeline (HDRP)
  • Custom shader effects

🤖 LLM Integration

  • GPT-4 / GPT-3.5 (OpenAI)
  • Claude 3 (Anthropic)
  • Gemini Pro (Google)
  • Unity-aware context
  • Code completion
  • Code analysis

🌍 AI Services (via Eden AI)

  • Text-to-speech (Unity AudioClip format)
  • NPC dialogue generation
  • Vision analysis for textures
  • UI localization/translation
  • Sentiment analysis

☁️ Unity Cloud Services

  • Cloud Code deployment
  • Remote Config management
  • Analytics querying
  • Diagnostics monitoring

Usage

Input Configuration

{
"operation": "generate_script",
"scriptDescription": "Player controller with WASD movement and jump",
"scriptName": "PlayerController",
"targetPlatform": "Windows"
}

Available Operations

OperationDescription
generate_scriptGenerate Unity C# script
create_shaderCreate custom shader
analyze_gameobjectAnalyze GameObject hierarchy
optimize_prefabGet prefab optimization suggestions
query_llmQuery GPT-4/Claude/Gemini
code_completionGenerate code completion
analyze_codeAnalyze C# code for issues
text_to_speechConvert text to speech
npc_dialogueGenerate NPC dialogue
translate_uiTranslate UI elements
vision_analysisAnalyze textures/images
deploy_cloud_codeDeploy to Unity Cloud
manage_remote_configUpdate Remote Config
query_analyticsQuery Unity Analytics

Examples

Generate Unity Script

{
"operation": "generate_script",
"scriptDescription": "Enemy AI with patrol and chase behavior",
"scriptName": "EnemyAI",
"targetPlatform": "Android"
}

Output:

//
using UnityEngine;
public class EnemyAI : MonoBehaviour
{
private void Start()
{
// Initialization logic
}
private void Update()
{
// AI logic
}
}

Create URP Shader

{
"operation": "create_shader",
"shaderName": "StylizedWater",
"shaderType": "Lit",
"renderPipeline": "URP"
}

Query GPT-4

{
"operation": "query_llm",
"llmModel": "gpt-4",
"llmPrompt": "How do I optimize draw calls for mobile in Unity?",
"targetPlatform": "Android",
"openaiApiKey": "sk-..."
}

Translate UI

{
"operation": "translate_ui",
"textsToTranslate": ["Start Game", "Settings", "Quit"],
"targetLanguages": ["es", "fr", "de", "ja"]
}

Output:

{
"translations": {
"es": ["Iniciar Juego", "Configuración", "Salir"],
"fr": ["Démarrer le jeu", "Paramètres", "Quitter"],
"de": ["Spiel starten", "Einstellungen", "Beenden"],
"ja": ["ゲームを開始", "設定", "終了"]
}
}

API Keys (Optional)

For LLM operations, provide API keys as input:

  • openaiApiKey - For GPT-4 / GPT-3.5
  • anthropicApiKey - For Claude 3
  • googleApiKey - For Gemini Pro
  • unityProjectId - For Unity Cloud Services

Note: API keys are optional. Basic operations (script/shader generation, analysis) work without them.

Input Schema

Required Fields

  • operation - The operation to perform

Optional Fields (operation-dependent)

  • scriptDescription - Description of what to generate
  • scriptName - Name of the script/shader
  • shaderType - Type of shader (Surface, Unlit, Lit)
  • renderPipeline - Render pipeline (Built-in, URP, HDRP)
  • gameObjectName - GameObject to analyze
  • prefabName - Prefab to optimize
  • targetPlatform - Unity platform (Windows, Android, iOS, etc.)
  • llmModel - LLM to use (gpt-4, claude-3-opus, gemini-pro)
  • llmPrompt - Question for LLM
  • codeToAnalyze - Code for analysis/completion
  • textToSpeak - Text to convert to speech
  • textsToTranslate - Array of UI texts
  • targetLanguages - Languages to translate to

Output

Results are pushed to the Actor's dataset:

{
"operation": "generate_script",
"success": true,
"result": {
"script_name": "PlayerController",
"code": "// Generated C# code",
"language": "csharp",
"base_class": "MonoBehaviour"
},
"input": { ... }
}

Platform Support

  • ✅ Windows, macOS, Linux
  • ✅ Android, iOS
  • ✅ WebGL (limited)
  • ✅ Console platforms

Unity Compatibility

  • Unity 2021.3 LTS and newer
  • Built-in, URP, and HDRP pipelines
  • All scripting backends

Limitations

  • LLM operations require valid API keys
  • Unity Cloud operations require project credentials
  • Some operations may have usage costs (LLM providers)
  • WebGL has limited functionality

Pricing

  • Actor runtime: Pay per compute unit
  • LLM API calls: Billed by provider (OpenAI/Anthropic/Google)
  • No additional fees for basic operations

Support

For issues or questions:

  • Check Actor logs
  • Review input schema
  • Verify API keys are valid

License


Generated with Claude Code

Built with the Apify SDK for Python. Learn more