Megalodon - AI Game Builder - Blueprint Generator from Natural Language

AI Game Builder is an editor plugin that generates Blueprint gameplay architecture from natural language prompts. Describe a system you want, and the plugin creates Blueprint assets with variables, functions, event graph nodes, and widget UI elements.

How It Works:

Type a prompt like "Create a health system with MaxHealth, CurrentHealth, TakeDamage and Heal functions, and a HealthBarWidget" — the plugin sends it to AI, receives structured JSON, and deterministically builds Blueprint assets using UE5 Python API. AI never generates code directly.

Features:

- 4 AI Providers: OpenAI, Anthropic Claude, Google Gemini, and Local AI (Ollama, LM Studio)

- Cross-Prompt Memory: Subsequent prompts know about previously generated assets, enabling interconnected systems

- Variable Reference Resolution: Automatically resolves variable-name defaults to actual values

- Script Preview and Edit: Review generated Python before execution

- Safety Validation: No OS access, no exec/eval, 30-second timeout

- Auto Retry: Retries up to 3 times on invalid AI responses

What Gets Generated:

- ActorComponent Blueprints with typed variables and default values

- Functions added to the function graph

- Event graph with wired nodes (BeginPlay, SetVariable, CallFunction, PrintString, Branch, Delay, Sequence, and more)

- UserWidget Blueprints with CanvasPanel, ProgressBar, TextBlock, Image, Button, and other UI elements

- System connection bridge functions between components and widgets

Supported Node Types: BeginPlay, Tick, CustomEvent, CallFunction, SetVariable, GetVariable, Branch, SetTimer, Delay, Sequence, ForEachLoop, SpawnActor, MakeArray, Cast, PrintString

Note: The plugin generates Blueprint scaffolding and architecture. Function body complexity depends on prompt detail. Widget viewport display requires manual Create Widget + Add to Viewport setup in PlayerController.

Requirements: UE 5.7+, Python Script Plugin (included with UE5), API key from any supported provider

Support: https://discord.gg/BdZvHJWRyR
Demo Video: https://youtu.be/YA_ejYS-2Nw