Knowledge-Conditioned, Single-Pass LLM Synthesis of Executable Unity Game Scenes: A Compiler Error Census across 26 Goal Playable Concepts

· Source: cs.SE updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Gaming & Interactive Media · Depth: Expert, extended

Summary

A study evaluated the intrinsic capability of large language models (LLMs) to synthesize executable Unity C# game scenes in a single pass, without iterative repair. Across 10,400 generation records from four open-weight models (7B-Qwen2.5, 16B-DeepSeek, 22B-Codestral, 30B-Qwen3-Ed/Rt), two generation modes, four intermediate-representation (IR) conditioning levels, 26 Goal Playable Concepts, and 20 seeds, no generated script compiled into a runnable scene. Researchers categorized 99 distinct compiler error codes, accounting for 90,673 occurrences, into "Grounding" (Unity-specific API/type knowledge) or "Hygiene" (structural/syntactic defects). The distribution of these errors varied significantly by goal pattern; for instance, "Stealth" patterns predominantly failed due to invented engine references, while "Capture" patterns failed on basic C# structure. The research concluded that increasing model size, applying stricter IR conditioning, or altering generation modes shifted error profiles but did not resolve the fundamental bottleneck of missing engine-specific knowledge.

Key takeaway

For AI Scientists and Game Designers developing LLM-assisted game scene generation, recognize that current open-weight models (7B-30B) cannot produce runnable Unity scenes in a single pass. If your project involves patterns like "Stealth" or "Rescue" that require complex engine interactions, anticipate significant "Grounding" errors, necessitating external engine-knowledge augmentation or manual intervention. For patterns like "Capture" with simpler state logic, "Hygiene" errors may dominate, suggesting grammar-constrained decoding. You should budget for post-generation repair or knowledge injection, as model scale alone does not resolve this core limitation.

Key insights

LLMs cannot generate runnable Unity scenes in a single pass due to missing engine-specific knowledge, regardless of scale or conditioning.

Principles

Method

The study evaluated LLMs by generating Unity C# scripts for 26 Goal Playable Concepts in a single pass, without iterative repair. It then categorized 99 compiler error codes into Grounding (Unity-specific) or Hygiene (structural) to analyze failure modes.

In practice

Topics

Code references

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, Director of AI/ML

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.SE updates on arXiv.org.