static void ShowSequenceImporter() { string dir = EditorUtility.OpenFolderPanel("Select a folder to load", "", ""); if (Directory.Exists(dir)) { ImageSequenceImporter importer = new ImageSequenceImporter(dir); VolumeDataset dataset = importer.Import(); if (dataset != null) { if (EditorPrefs.GetBool("DownscaleDatasetPrompt")) { if (EditorUtility.DisplayDialog("Optional DownScaling", $"Do you want to downscale the dataset? The dataset's dimension is: {dataset.dimX} x {dataset.dimY} x {dataset.dimZ}", "Yes", "No")) { dataset.DownScaleData(); } } VolumeObjectFactory.CreateObject(dataset); } } else { Debug.LogError("Directory doesn't exist: " + dir); } }
static void ShowSequenceImporter() { string dir = EditorUtility.OpenFolderPanel("Select a folder to load", "", ""); if (Directory.Exists(dir)) { ImageSequenceImporter importer = new ImageSequenceImporter(dir); VolumeDataset dataset = importer.Import(); if (dataset != null) { VolumeObjectFactory.CreateObject(dataset); } } else { Debug.LogError("Directory doesn't exist: " + dir); } }