zoukankan      html  css  js  c++  java
  • unity3d打开对话框

    最近一直在忙项目,没时间更新博客,这两天趁空封装windows下的打开对话框,支持多选。其他系统可以用ngui或者ugui封装一个。

    这里就不上封装的源码了提供dll供小伙伴们使用,如果有需要源码请请留言。

    以下是"打开对话框类"的使用

     1 using UnityEngine;
     2 using System.Collections.Generic;
     3 using Utils;
     4 
     5 public class Script1 : MonoBehaviour
     6 {
     7 
     8     public void OnOpenFileDialog()
     9     {
    10         List<string> files = new List<string>();    //选择的文件名
    11 
    12         FileDialog.Open("All Files*.*", files, "打开对话框");
    13 
    14         foreach (var f in files)
    15         {
    16             print(f);
    17         }
    18     }
    19 }

    转载请注明出处http://www.cnblogs.com/fyluyg/p/5957447.html

    下载

  • 相关阅读:
    杨辉三角
    100以内的素数
    九九
    MyDate
    计算器
    100以内素数
    杨辉三角形
    九九乘法表
    窗口关闭事件
    计算器界面
  • 原文地址:https://www.cnblogs.com/fyluyg/p/5957447.html
Copyright © 2011-2022 走看看