C# .Net plugins on Windows

Is it possible to create a native DLL with C# scripts in Visual Studio that target .net api’s that Unity does not have access to? For instance, I would like to create a native file dialog, Unity’s version of .net does not have the System.Windows.Forms namespace. Can I create a DLL in Visual Studio that references that namespace and use that as a plugin in Unity? This would not reference UnityEngine in any way.

Are you talking about Windows Standalone or UWP?
You can’t do that in Standalone yet.

Yes, I am talking about Windows Standalone. So the only way that this can be done is to create my own filesystem GUI?

You could either write a C++ plugin or P/Invoke into native windows OS APIs to do that too.

1 Like