void Progress(string message, float fPercent) { Repaint(); if (EditorUtility.DisplayCancelableProgressBar("Computing hulls", message, fPercent / 100.0f)) { if (m_concaveCollider) { m_concaveCollider.CancelComputation(); m_concaveCollider = null; } } }