ABSTRACT

Writing in C# means being able to write software for many platforms. This includes embedded systems like the Arduino. Although the C# for Arduino is limited to older versions of .NET and thus older features of C#, a lot of the basic C# functionality is available. The one C# file in the Solution Explorer has a static class and a static function. This is just a simple starting point, but the project isn’t to serve as anything more than a simple example of how to import methods from a DLL. Once Unity is aware that there’s a DLL in the Plugins directory, the project is updated with some additional files reflecting how the DLL is to be used. Cross platform compatibility is also allowed when writing a plugin with C#. A C# library built with .NET can conveniently run on any platform that runs Unity. The classes in Unity need to know how to operate with an external library.