Esempio n. 1
0
	void beginFullProjectExport(){
		var logger = new Logger();						
		var proj = JsonProject.fromCurrentProject(true, logger);
		if (proj != null){
			proj.saveToFile(targetPath, true, true, logger);
		}
		ExportResultWindow.openWindow(logger);
	}
Esempio n. 2
0
        public static void  exportJsonProj(MenuCommand menuCommand)
        {
            var path = EditorUtility.SaveFilePanel("Save category config", "", Application.productName, "json");

            if (path == string.Empty)
            {
                return;
            }

            var logger = new Logger();
            var proj   = JsonProject.fromCurrentProject(true, logger);

            Debug.LogFormat("Project: {0}", proj);
            if (proj != null)
            {
                proj.saveToFile(path, true, true, logger);
            }
            ExportResultWindow.openWindow(logger);
        }