Real-time 3D with Unity Industry: What to vibe code with Unity CLI and when to rely on the foundational infrastructure
Unity introduces a CLI enabling AI agents to interact with its Editor for faster prototyping and automation, while distinguishing between surface-level vibe coding and foundational infrastructure needs.
Unity’s new Command Line Interface (CLI) allows large language models (LLMs) to execute commands, run C# scripts, and interact with the Unity Editor without domain reloads, accelerating workflows for developers and designers. The CLI supports AI agents and CI systems, enabling tasks like prefab spawning, scene assembly, and tool creation without rebuilding the engine. This leverages Unity’s existing extensibility through C# and open APIs, providing a stable interface for rapid iteration and automation. The practical impact is faster project setup, scene creation, and test execution directly within the Editor.
The CLI’s Eval command enables direct C# execution in the Unity Editor, bridging AI-generated code with runtime operations. Designers and technical artists can prototype features like audio managers or spline-based animations more efficiently, while developers streamline testing and CI/CD pipelines. The interface reduces manual setup, allowing teams to focus on custom functionality rather than foundational tooling. This approach aligns with Unity’s long-standing flexibility, where C# serves as the primary extension point for nearly all Editor interactions.
Unity distinguishes between the ‘surface’—custom scripts, UI, and Editor tools—and the ‘foundation’—engine components like rendering, physics, and multiplatform support. Vibe coding excels on the surface due to abundant public reference material, enabling rapid prototyping of features like HMI clusters or robot telemetry UIs. For example, an automotive HMI cluster was built in hours using an LLM agent, a task that previously required days or weeks of iterative design and development. The surface layer benefits from extensive online documentation and community-driven examples.
The foundation, however, requires managed infrastructure, including SLAs, security, versioning, and lifecycle maintenance, which AI cannot reliably replicate. Unity’s paid subscriptions cover these foundational services, including Unity Asset Transformer, Asset Manager, and pipeline automation. While AI can automate parts of the surface, the foundation remains critical for scalable, reliable real-time 3D workflows. The CLI supports agentic AI for surface-level tasks but does not replace the need for Unity’s managed infrastructure in production environments.