Ejemplo n.º 1
0
 void OnGUI()
 {
     GUIText.LayoutHead("LIVE2D TOOLS", 20);
     GUIText.LayoutSplit(">>选择要打包的模型根文件夹", 15);
     modelPath = GUIFolderSelect.OnGUI("", 0, modelPath ?? DefaultModelDir, onSelect: (arg) =>
     {
         arg = FileSystem.StandardizeSlashSeparator(arg);
         Debug.Log($"已选择模型文件夹:{arg}");
         return(arg);
     });
     GUILayout.BeginVertical();
     GUILayout.Space(10);
     if (GUILayout.Button("导出"))
     {
         Export();
     }
     GUILayout.EndVertical();
 }