unity中添加System.Windows.Forms

首先到Unity安装目录\Editor\Data\Mono\lib\mono\2.0下找到System.Windows.Forms.dll
Copy到unity工程下Assets下的新建文件夹Plugins中
然后代码添加引用 using System.Windows.Forms.dll;就可以啦

你可能感兴趣的:(unity,游戏引擎)