private static ProgressDelegate CreateProgressBar(System.Action onCancel, string title = "Computing hulls") { return (string message, float fPercent)=> { if(UnityEditor.EditorUtility.DisplayCancelableProgressBar(title, message, fPercent / 100.0f) && onCancel != null) onCancel(); }; }