using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.UI; public class ImageTest : MonoBehaviour { /// <summary> /// Image控件 /// </summary> private Image image; void Start() { image =
调用System.Windows.Forms DLL 首先在Unity新建Plugins文件夹添加System.Windows.Forms.dll 然后代码中添加引用 using System; using UnityEngine; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using System.IO; public class FileMenu : Mono
直接上代码 Part1: using UnityEngine; using System.IO; using System.Collections.Generic; public class CSV { static CSV csv; public List<string[]> m_ArrayData; public static CSV GetInstance() { if (csv == null) { csv = new CSV(); } return csv; } private CS
using UnityEngine; using System.Collections; using System.IO; using System.Collections.Generic; using System.Globalization; using UnityEngine.Networking; using System; using System.Threading; using UnityEngine.UI; public class ObjToUnityNO : MonoBeha
在游戏开发过程中,经常要用到Excel编辑各类数据,如果可以直接用Excel支持的文件格式来读取数据,修改将非常便捷. Excel支持导出CSV类型的文件,这类文件不仅可以用Excel直接打开修改,即便用记事本打开也非常容易阅读,解析起来也很简单. 下面给出CSV文件的解析类: using UnityEngine; using System.IO; using System.Text; public class CSV { static CSV csv; public static CSV Ge