Example #1
0
 private static void Init()
 {
     //获取当前实例
     instance = EditorWindow.GetWindow <ExcelWindow>();
     //初始化
     pathRoot = Application.dataPath;
     //注意这里需要对路径进行处理
     //目的是去除Assets这部分字符以获取项目目录
     //我表示Windows的/符号一直没有搞懂
     pathRoot  = pathRoot.Substring(0, pathRoot.LastIndexOf("/"));
     excelList = new List <string>();
     scrollPos = new Vector2(instance.position.x, instance.position.y + 75);
 }
Example #2
0
 public static void ShowExcelTools()
 {
     ExcelWindow.ShowExcelTools();
 }