Unity API in WinForms Application

How to use Unity API in WinForms Application.
I need to write small application with winforms using Unity API.
I included unityengine.dll reference, created second class with :monobehaviour, but facing this problem: “ECall methods must be packaged into a system module.”;

1 Answer

1

Uhm it should be obvious that the Unity API only works in Unity. The UnityEngine.dll is just a wrapper dll into native code functions of the engine itself. The engine is written in native code and can’t be used as “plugin” in other applications.