Exemple #1
0
 void Update()
 {
     if (downloadImagesThread != null && downloadImagesThread.IsFinished())
     {
         StatusText.text      = "Images exported.";
         downloadImagesThread = null;
     }
 }
Exemple #2
0
 void Update()
 {
     if(downloadImagesThread != null && downloadImagesThread.IsFinished())
     {
         StatusText.text = "Images exported.";
         downloadImagesThread = null;
     }
 }
Exemple #3
0
    public void OnExportButtonClicked()
    {
        if (downloadImagesThread != null)
        {
            StatusText.text = "Already exporting images...";
            return;
        }

        var path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyPictures);

        //var path = EditorUtility.SaveFolderPanel("Save textures to directory", "", "");
        if (path.Length != 0)
        {
            path = Path.Combine(path, "symbiosart-liked-images");
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            downloadImagesThread = new derlin.symbiosart.threading.DownloadLikedImagesJob(path);
            downloadImagesThread.Start();
            StatusText.text = "Exporting images...";
        }
    }
Exemple #4
0
    public void OnExportButtonClicked()
    {
        if(downloadImagesThread != null)
        {
            StatusText.text = "Already exporting images...";
            return;
        }

        var path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyPictures);
        //var path = EditorUtility.SaveFolderPanel("Save textures to directory", "", "");
        if (path.Length != 0)
        {
            path = Path.Combine(path, "symbiosart-liked-images");
            if (!Directory.Exists(path)) Directory.CreateDirectory(path);
            downloadImagesThread = new derlin.symbiosart.threading.DownloadLikedImagesJob(path);
            downloadImagesThread.Start();
            StatusText.text = "Exporting images...";
        }
    }