Unity-使用System.Windows.Forms.dll

版权声明:转载请注明出处 https://blog.csdn.net/pgw00k/article/details/53166861

如题所示,做个记录给自己

2016-11-15,Unity5.4.1p3,Visual Studio2015的组合。

想要实现使用Windows的打开文件对话框的功能,遭遇种种错误,附上解决方法。

1.到 ...\Editor\Data\Mono\lib\mono\2.0目录中将System.Windows.Forms.dll复制到相关工程的 ...Assets\Plugins\目录下。

2.修改Edit -> Project Settings -> Player->Other Setting中的API Compatibility Level为.Net 2.0。

3.添加Dll引用,using命名空间。

猜你喜欢

转载自blog.csdn.net/pgw00k/article/details/53166861