Hi. Which AI agents can compile and debug C++ code for Unreal Engine? For example, write code for an AActor class and verify the result.
Can this be done in OpenCode? Or does it have to be set up through MCP inside Unreal Engine? Can an AI compile it in the console and then somehow call that code? I need complex mathematical algorithms, which is why I need an AI.
yes, any agent that can run a shell can compile UE C++ without the editor open. Unreal Build Tool compiles the project from the command line and the compiler errors come back as plain text the agent can read and fix. The catch is the editor: while it is open it locks the module DLLs, so the build fails until you close it.
to run the code, the usual route is a headless test. An automation test or a commandlet creates the actor, runs your math, and writes the results to the log, then the agent reads the log and checks the numbers. Calling compiled code from the editor console only works if you expose it as a console command or a Blueprint callable function.
an MCP bridge inside the editor only helps if the agent needs to touch live objects. For pure math, the command line plus a test is the simpler setup.