Esempio n. 1
0
    void OnDestroy()
    {
        // if (System.IO.File.Exists(zipPath))
        // System.IO.File.Delete(zipPath);

        if (exporterGo)
        {
            DestroyImmediate(exporterGo);
            exporter  = null;
            publisher = null;
        }
    }
Esempio n. 2
0
    //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();
    }
Esempio n. 3
0
    //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();
    }