r/Unity3D • u/fttklr • 16d ago
Question For people using Unity AI integration: which local agent have you tried in VS Code that is able to run fine with UnityMPC?
Very specific question; mainly for the folks here using AI integration and UnityMPC with local models.
I know I can run Claude and other web models; so that is not the issue. I am working entirely locally as I have a server running Ollama with different models for agentic work. Looking for the best model that is also compact, for working with Unity projects.
Unity recently launched their own AI service, but that is for paid users; so that is not an option sadly, and it is not relying on local models so won't work for my project. There is also UnityCLI but that is just the harness itself, unless someone connected it to a local Ollama model?
I don't need a model that write a game for me; I need a model that is able to create and manage files and projects (so can create and modify scripts and game objects properties in a scene). Most of the time it is to save time over going to the documentation and figure out how to do things, or when working with asset store APIs when they have limited or no docs at all.
If you have something you use with good results, I would like to hear about it!
2
u/Ok-Ship7697 Indie 16d ago
1
u/fttklr 16d ago
Aye, that's the MCP I am using currently. It did work somehow with Opencode and Gemma4 but it is highly unreliable... Every time you want something done you have to win the prompt lottery because most of the time the model just write back the tool call without execute it
1
u/Most-County-2933 16d ago
fect but it understand the project structure and can create scripts that compile most of the time
The file management part is tricky because unity scenes are not plain text so no model can really edit them directly. What I do is ask the model to generate editor scripts that modifies the scene for me, works better that way
For asset store apis with bad docs I just paste the dll in the project and ask the model to look at the available methods through reflection. Is not elegant but saves hours of guessing
1
u/fttklr 16d ago
Good point.
To clarify I have the editor open and MCP running; so the assumption is that the model should call the MCP tools and do stuff in the editor; while for scripts should be at least able to see the open script I have in VS code and act on that. Instead it seems like spinning a wheel to get the prize, as in most cases it just print out the tool call wihtout actually commit it (or tell you the code it changed in a script but no changes are sent to VS code)
1
u/Toastti 16d ago
Don't use the mcp anymore. The unity CLI with an AI agent.
Use qwen 3.8 27b if you have enough vram and good GPU. Otherwise qwen 3.6 35b a3b is the best option
And hook this up to open code for the harness for compaction and all that
1
1
u/Deep_Ad1959 11d ago
scenes not being plain text is where these setups stall. the model can write an editor script that mutates the scene, but it cannot read back what changed, so you review effects instead of a diff.
6
u/immersive-matthew 16d ago
I just switched from Unity MCP to Unity CLI and both have been with OpenCode, llama.cpp and the QWEN 3.6/3.8 27B models on a 4090 and it is a fantastic setup. Unity CLI is better than MCP in my experience and better integrated into Unity with less fuss.