UnityMCP, developed by an unnamed author, is a Unity Editor plugin and server implementation that enables AI assistants to interact with Unity projects in real-time. Built with C# and TypeScript, it offers tools for retrieving editor state, executing C# commands, and accessing logs. The implementation focuses on providing a standardized interface for AI models to manipulate Unity scenes, objects, and project settings. It's particularly useful for tasks like automated level design, asset management, or debugging assistance, allowing AI to directly influence Unity projects without requiring deep knowledge of the Unity API or editor interface.
暂无评论. 成为第一个评论的人!
登录以参与讨论
Retrieves current Unity Editor state, including active GameObjects, selection state, play mode status, and provides scene hierarchy and project structure. Supports different output formats (Raw, scripts only, no scripts).
Executes C# code directly in the Unity Editor with full access to UnityEngine and UnityEditor APIs, allowing real-time execution with comprehensive error handling and command timeout protection.
Retrieves and filters Unity Editor logs, supporting filtering by type, content, and timestamp with customizable output fields and buffer management for optimal performance.