Is there a way to compile arduino code in a unity app?

What I’m looking for is a way to write arduino code in a unity app, compile and send to arduino over bluetooth.

Nothing built into Unity that can build to Arduino and transfer. I think your best bet would be to find command-line documentation for [Ino][1](no Windows version) or Processing, and have Unity3D run it to build + transfer via commandline using [System.Diagnostics.Process.Start()][2] in the .net/mono framework (or maybe posix pipes, but that might be going overboard). [1]: http://inotool.org/ [2]: http://www.dotnetperls.com/process-start

1 Answer

1

Better do that with the Java IDE furnished for Arduino.
the code is so little, that I doubt you need Mono Develop to write such code.
Or you mean rebuild a new code while your unity App running and send new code to Arduino ?