External academic research
Unity Insight: A Production Code-Asset Index for LLM Coding Agents in Unity Projects
Shenhua Gu, Hongqiang Zhu, Fan Zhang, Jinming Zhang, Hao Chen
- Published
- September 23, 2026
- Venue
- arXiv (Cornell University)
- OpenAlex topic
- Artificial Intelligence in Games
Abstract
LLM coding agents increasingly operate inside game-engine repositories, where application logic is inseparable from serialized assets: a single gameplay change may span C\# scripts, prefabs, scenes, and ScriptableObjects wired together by Unity GUIDs. The retrieval tools agents carry today-shell utilities and code-only indexes-cannot answer basic cross-file questions, because these relationships live in \texttt{.meta} files and YAML assets rather than in code. We present Unity Insight, to our knowledge the first persistent, LLM-facing, agent-integrated cross-file code-asset index for Unity projects, shipping in production with Tuanjie Codely, the agent CLI of Tuanjie Engine, since its public launch on 2026-07-28. In a paired experiment-28 project-specific questions on two Unity games, same model and harness, one run per arm per question-the index-backed agent spent 53\% fewer tokens and 52\% less wall-clock time than a general-purpose exploration agent (exact paired sign tests, $p{<}0.004$), using only its typed index-query tools.