Text-to-World Generation for Unity - Powered by AI
The Unity AI Scene Builder Tool is a revolutionary system that enables real-time text-to-world generation in Unity. Create complete 3D scenes, apply production-quality materials, optimize performance, and design entire levels using natural language commands.
Key Features:
- ποΈ Geodesic Dome with Oculus - Mathematically perfect 200-unit radius dome with divine lighting (NEWEST!)
- π Sci-Fi Capital Generator - 800+ object cyberpunk metropolis with 20 ultra-tall skyscrapers
- π° Luxury Villa Generator - 400+ object Mediterranean villa in 3 minutes
- π Complete World Generation - Generate entire playable worlds in seconds (10 biome types)
- π¨ Materials System - 14 predefined PBR materials + custom color/metallic/smoothness/emission
- ποΈ Hierarchy System - Organized scene structure + 60x performance optimization via mesh combining
- π§ Scene Intelligence - Context-aware queries (find objects by name, tag, proximity)
- β‘ Real-Time Generation - Create complete worlds with terrain, lighting, and props in 2-10 seconds
- π Complete Documentation - 30,000+ words across comprehensive guides
- Unity 2021.3 or newer
- Node.js 18+
- PowerShell (Windows) or compatible shell
-
Clone Repository:
git clone https://github.com/kevinb42O/UnityAI_SceneBuilderTool.git
-
Unity Setup:
- Copy
Assets/Editor/UnityMCPServer.csto your Unity project'sAssets/Editor/folder - Unity will auto-compile and start the MCP server
- Copy
-
Node.js Setup:
cd UnityMCP npm install -
Test Connection:
. .\unity-helpers-v2.ps1 Test-UnityConnection
-
Run Demo:
.\demo-v2-features.ps1
Mathematical Perfection Meets Architectural Grandeur
.\create-geodesic-dome.ps1- β Mathematically Perfect Structure - Based on icosahedron subdivision (20 faces β 5,120 triangles)
- β Golden Ratio Proportions - Ο = 1.618 throughout design for natural beauty
- β Massive Scale - 200-unit radius covers entire map, 85-unit height
- β Central Oculus - 30-unit diameter skylight with divine lighting system
- β 500-800 Struts - Metallic structural framework with emissive accents
- β 1,000-1,500 Panels - Semi-transparent glass with blue tint
- β Dramatic Lighting - Central beam (5.0 intensity) + 8 god rays (3.0 intensity)
- β 16 Support Pillars - Concrete foundation with decorative caps
- 1,600-2,400 Objects optimized to 4-8 meshes (200-600Γ performance gain)
- Geodesic Mathematics - Natural vertex distribution, triangular tessellation
- Professional Materials - PBR metallic struts, glass panels, emissive elements
- Frequency 4 Subdivision - Production-quality detail level
- Complete Documentation - 19KB comprehensive guide + visual reference
- 3-5 Minute Generation - Fully automated procedural creation
See: GEODESIC_DOME_GUIDE.md for complete details and GEODESIC_DOME_VISUAL.md for visual reference
The Ultimate Ropeswing Paradise - Spider-Man Would Be Jealous!
.\create-scifi-capital.ps1- β 20 Ultra-Tall Skyscrapers - Buildings up to 150 units high (8x taller than villa!)
- β 4 Color-Coded Districts - Cyan Tech, Magenta Business, Yellow Commerce, Orange Residential
- β 16 High-Altitude Skyways - Perfect for web-slinging gameplay at 60-110 units height
- β Grid Road Network - Streets with lighting, 16 vehicles (hover cars + ground cars)
- β Neon-Soaked Atmosphere - 16 billboard ads, 24 floating orbs, 8 searchlights
- β 4 Building Styles - Modern, Cylindrical, Pyramid, Setback architectures
- β Perfect Swinging Geometry - 40-unit spacing, multi-level gameplay (0-160 units)
- 800+ Objects creating massive cyberpunk metropolis
- 4 Building Generation Functions with sophisticated lighting systems
- 200+ Swing Attachment Points on edges, skyways, antennas
- Vertical Gameplay Focus - 4 distinct height levels for progressive challenges
- Cyberpunk Aesthetic - Blade Runner / Cyberpunk 2077 inspired
- Complete Documentation - 11KB guide + comparison document
See: SCIFI_CAPITAL_GUIDE.md for complete details and SCIFI_CAPITAL_VS_OTHER_SCENES.md for comparisons
One command. Three minutes. Four hundred objects.
.\build-luxury-villa.ps1- β 3-Story Structure - Ground floor, first floor, roof terrace
- β 8+ Furnished Rooms - Living, dining, kitchen, 3 bedrooms, penthouse
- β Architectural Details - 20+ cornices, 8 pilasters, 12 shutters
- β 30+ Light Sources - Chandeliers, lamps, emissive elements
- β Complete Gardens - Trees, fountain, pathways, hedges
- β Balconies & Stairs - 2 balconies with railings, 2 staircases
See: VILLA_IMPLEMENTATION_COMPLETE.md for complete details
# Create mathematically perfect dome covering entire map
cd UnityMCP
.\create-geodesic-dome.ps1
# Result: Massive architectural masterpiece with:
# - 200-unit radius dome (covers entire map)
# - 500-800 metallic struts in geodesic pattern
# - 1,000-1,500 semi-transparent glass panels
# - Central 30-unit diameter oculus with divine lighting
# - Golden ring reinforcement with emissive accents
# - 16 concrete support pillars at base
# Time: 3-5 minutesSee GEODESIC_DOME_GUIDE.md for complete documentation.
# Create complete B21 military facility (500+ objects)
cd UnityMCP
.\Building21.ps1
# Result: Multi-story complex with:
# - 3 underground levels (storage, server rooms, labs)
# - Ground floor with security lobby
# - 4 upper floors (research labs, offices)
# - Rooftop helipad with lighting
# Time: 15-30 secondsSee BUILDING21_GUIDE.md for complete documentation.
# Generate a fantasy world with magical trees and crystals
New-World -biome "Fantasy"
# Generate a medieval village with castle
New-World -biome "Medieval" -worldSize 150 -density 70
# Generate a sci-fi city with glowing structures
New-World -biome "SciFi" -worldSize 200 -density 80
# Available biomes: Forest, Desert, City, Medieval, SciFi,
# Fantasy, Underwater, Arctic, Jungle, Wasteland# Generate a 3-story Mediterranean villa with 400+ objects
.\build-luxury-villa.ps1
# Features: 8 rooms, balconies, gardens, fountain, lighting
# Time: 2-3 minutes | Objects: 400+
# See: LUXURY_VILLA_GUIDE.md for detailsBuild-ColoredObject -name "RedCube" -type "Cube" `
-x 10 -y 5 -z 0 -colorName "Red" `
-metallic 0.5 -smoothness 0.8Apply-Material -name "MyWall" -materialName "Brick_Red"New-Group -name "Building"
Build-ColoredObject -name "Foundation" -parent "Building" ...
Build-ColoredObject -name "Walls" -parent "Building" ...
Optimize-Group -parentName "Building" # 60x performance boost!# Find all walls
$walls = Find-Objects -query "Wall"
# Find objects near position
$nearby = Find-Objects -radius 50 -position @{ x=0; y=0; z=0 }Proven Results:
- Complete world generation in 2-10 seconds (includes terrain, environment, props, lighting)
- 10 unique biomes available (Forest, Desert, City, Medieval, SciFi, Fantasy, Underwater, Arctic, Jungle, Wasteland)
- 60x draw call reduction via mesh combining
- 180x faster material setup (30 min β 10 seconds)
- 60x faster level prototyping (2 hours β 2 minutes)
- Stress tested with 778-object bridge + complete world generation (100% success rate)
- GEODESIC_DOME_GUIDE.md - Mathematical dome with oculus (1,600-2,400 objects) (NEWEST!)
- GEODESIC_DOME_VISUAL.md - Visual reference and ASCII art (NEWEST!)
- GEODESIC_DOME_QUICK_REF.md - Quick reference card (NEWEST!)
- BUILDING21_GUIDE.md - Call of Duty B21 replica (500+ objects, 8 levels)
- BUILDING21_VISUAL_MAP.md - ASCII floor maps and navigation
- BUILDING21_QUICK_REF.md - Quick reference card
- WORLD_GENERATION_GUIDE.md - Complete world generation guide
- V2_QUICK_REFERENCE.md - Essential commands (2-minute read)
- VILLA_QUICK_START.md - Build a villa in 3 minutes (NEW! π°)
- V2_DOCUMENTATION.md - Complete system guide (30-minute read)
- WORLD_GENERATION_GUIDE.md - Complete world generation guide
- LUXURY_VILLA_GUIDE.md - Detailed villa architecture guide (NEW! π°)
- V2_IMPLEMENTATION_SUMMARY.md - Technical deep dive
- UNITY_MCP_CREATION_GUIDE.md - Original creation patterns
This project is optimized for GitHub Copilot Workspace with infinite credits.
When working on this codebase with multiple AI agents:
-
Read Documentation First:
V2_IMPLEMENTATION_SUMMARY.md- System architecture.github/copilot-instructions.md- Project-specific AI guidelinesV2_QUICK_REFERENCE.md- API reference
-
Code Standards:
- Zero compiler warnings (Unity)
- Full error handling on all API endpoints
- Comprehensive XML documentation
- Follow existing naming conventions
-
Testing Requirements:
- Test all endpoints with demo script
- Verify 60x performance optimization
- Check Unity Profiler for zero allocations
- Validate with 500+ object scenes
-
Performance Guidelines:
- All hot paths must be zero-allocation
- Mesh combining must group by material
- Query results limited to 500 objects
- Use cached objects in Unity loops
-
Documentation Requirements:
- Update docs when adding features
- Include code examples in docs
- Add to V2_QUICK_REFERENCE.md
- Update V2_IMPLEMENTATION_SUMMARY.md stats
-
Parallel Development:
- Unity C# β
Assets/Editor/UnityMCPServer.cs - Node.js MCP β
UnityMCP/index.js - PowerShell β
UnityMCP/unity-helpers-v2.ps1 - Docs β
UnityMCP/V2_*.md
- Unity C# β
GitHub Copilot Workspace Benefits:
- Infinite agent credits (GitHub Pro+)
- Parallel feature development
- Automatic code review
- Documentation generation
- Test case creation
-
Unity MCP Server (
Assets/Editor/UnityMCPServer.cs)- HTTP REST API on port 8765
- 15+ endpoints for scene manipulation
- Zero-allocation design
- Full Undo/Redo support
-
Node.js MCP Bridge (
UnityMCP/index.js)- Model Context Protocol server
- Tool definitions for AI agents
- Connection health monitoring
-
PowerShell Helper Library (
UnityMCP/unity-helpers-v2.ps1)- 15 high-level functions
- Material presets
- Error handling
- Progress reporting
AI Agent β MCP Server β Unity HTTP API β Unity Editor β Scene
| Material | Description | Use Case |
|---|---|---|
| Wood_Oak | Brown rough wood | Structures, furniture |
| Metal_Steel | Gray shiny metal | Industrial, machinery |
| Metal_Gold | Gold mirror finish | Decorative elements |
| Brick_Red | Red rough brick | Buildings, walls |
| Concrete | Gray matte concrete | Foundations, floors |
| Glass_Clear | Transparent glass | Windows, containers |
| Emissive_Blue | Glowing blue | Sci-fi, energy effects |
14 total presets available - See V2_DOCUMENTATION.md
- Materials system (custom + 14 presets)
- Hierarchy organization
- Mesh optimization (60x performance)
- Scene queries
- Complete documentation
- Texture loading from files
- More material presets
- Batch material operations
- Material preview system
- Physics integration (colliders, rigidbodies, layers)
- Template library (Castle, House, Bridge, Arena)
- Terrain generation
- Lighting control
- Asset Store package integration
Contributions welcome! This project is designed for multi-agent development.
- Read
.github/copilot-instructions.md - Create feature branch
- Follow code standards (zero warnings)
- Update documentation
- Test with demo script
- Submit PR
- New material presets
- Performance optimizations
- Documentation improvements
- Example scenes
- Template library
MIT License - See LICENSE file
Created by: Kevin B.
Integration: AAA Movement Controller + Unity MCP System
Platform: Unity 2021.3+
Repository: github.com/kevinb42O/UnityAI_SceneBuilderTool
Issues: GitHub Issues tab
Discussions: GitHub Discussions
Documentation: See UnityMCP/ folder
Real-world results:
- β Complete worlds generated in 2-10 seconds (terrain + environment + lighting)
- β 10 unique biome types available (Forest, Desert, City, Medieval, SciFi, Fantasy, Underwater, Arctic, Jungle, Wasteland)
- β 778-object suspension bridge created in 2 minutes
- β 60-brick wall optimized from 60 draw calls to 1
- β Complete building with materials in 30 seconds
- β Zero compiler warnings, production-ready code
Build worlds with your words. π