void OnDestroy() { // if (System.IO.File.Exists(zipPath)) // System.IO.File.Delete(zipPath); if (exporterGo) { DestroyImmediate(exporterGo); exporter = null; publisher = null; } }
//private List<String> tagList; void Awake() { zipPath = Application.temporaryCachePath + "/" + "Unity2Skfb.zip"; exportPath = Application.temporaryCachePath + "/" + "Unity2Skfb.gltf"; exporterGo = new GameObject("Exporter"); publisher = exporterGo.AddComponent <ExporterScript>(); exporter = exporterGo.AddComponent <SceneToGlTFWiz>(); //FIXME: Make sure that object is deleted; exporterGo.hideFlags = HideFlags.HideAndDontSave; //publisher.getCategories(); resizeWindow(loginSize); publisher.checkVersion(); }
//private List<String> tagList; void Awake() { zipPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop) + Path.DirectorySeparatorChar + "PlattarExport.zip"; exportPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Desktop); exporterGo = new GameObject("Exporter"); publisher = exporterGo.AddComponent <ExporterScript>(); exporter = exporterGo.AddComponent <SceneToGlTFWiz>(); //FIXME: Make sure that object is deleted; exporterGo.hideFlags = HideFlags.HideAndDontSave; //publisher.getCategories(); resizeWindow(fullSize); publisher.checkVersion(); }