private void ShowEditorProgressBar(string message, float fPercent) { if(UnityEditor.EditorUtility.DisplayCancelableProgressBar("Computing hulls", message, fPercent / 100.0f)) { CancelComputation(); } }