protected override void HandleScreenshotUserChoice(string path, ScreenshotUserChoice choice)
        {
            switch (choice)
            {
            case ScreenshotUserChoice.Open:
                EditorUtility.RevealInFinder(path);
                break;

            case ScreenshotUserChoice.Delete:
                File.Delete(path);
                break;

            case ScreenshotUserChoice.Continue:
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(choice), choice, "Value not expected.");
            }
        }
예제 #2
0
        protected override void HandleScreenshotUserChoice(string path, ScreenshotUserChoice choice)
        {
            switch (choice)
            {
            case ScreenshotUserChoice.Open:
                Application.OpenURL($"file://{Path.GetFullPath(path)}");
                break;

            case ScreenshotUserChoice.Delete:
                File.Delete(path);
                break;

            case ScreenshotUserChoice.Continue:
                break;

            default:
                this.dialog.Show("Not Supported.", $"Option {choice} is not supported at this time.");
                break;
            }
        }
예제 #3
0
 protected abstract void HandleScreenshotUserChoice(string path, ScreenshotUserChoice choice);