Unity3D使用System.Windows.Forms.dll
2013-10-22 12:27
344 查看
using UnityEngine; using System.Collections; using System.Windows.Forms; public class Test : MonoBehaviour { // Use this for initialization void Start() { } // Update is called once per frame void Update() { } void OnGUI() { if (GUI.Button(new Rect(0, 0, 100, 20), "Button")) { MessageBoxYesCancel("yes"); } } public static DialogResult MessageBoxYesCancel(string Information)//通用弹出式信息显示对话框方法(进行互操作)返回***感汉号 { string caption = "【系统提示】"; MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel; return MessageBox.Show(Information, caption, buttons, MessageBoxIcon.Question); } }
playersettings optimization api compatibility level .NET 2.0
需要添加引用System.Deployment
下载所需的两个dll
相关文章推荐
- Unity3d调用system.windows.forms.dll使用OpenFileDialog打开文件选择窗口
- Unity3D使用System.Windows.Forms.dll的方法
- .net chart(图表)控件的使用-System.Windows.Forms.DataVisualization.dll
- Unity-使用System.Windows.Forms.dll
- System.Windows.Forms.DataGridView的使用总结
- !!! C++/CLI中使用using namespace System::Windows::Forms;+MessageBox报错---最重要的是看MSDN 每个函数的使用例子
- An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll
- c#使用Windows.Forms里面计时器和System.Timers里面的计时器
- System.ArgumentException 位于 System.Windows.Forms.dll 源对象不公开“IPropertyNotifySink”事件接口
- 关于.net中使用System.Windows.Forms.Timer的限制.
- System.Windows.Forms.DataGridView的使用总结
- System.windows.forms.datagrid控件使用技巧
- C#中 使用 System.Windows.Forms.Time 定时器
- AE10.0开发时 System.ComponentModel.LicenseException' occurred in system.windows.forms.dll
- 在 System.Windows.Forms.DataGrid中切入使用ComboBox控件
- 'System.Threading.ThreadStateException' occurred in "System.Windows.Forms.dll " in opencv1.1 version
- System.Windows.Forms.AxHost.InvalidActiveXStateException”类型的异常在 ESRI.ArcGIS.AxControls.dll 中发生,但未在用户代码中进行处理
- System.Windows.Forms.PropertyGrid的使用
- 书羊农历控件使用步骤及处理错误:引发了“System.Windows.Forms.AxHost.InvalidActiveXStateException”类型的异常
- 使用System.Windows.Forms.Application.DoEvents实时更新画面