private static void Update() { var state = (IPersistentMap)State.deref(); var cancel = EditorUtility.DisplayCancelableProgressBar(state.valAt(_titleKw) as string, state.valAt(_infoKw) as string, RT.floatCast(state.valAt(_progressKw))); if (_stop || cancel) { EditorUtility.ClearProgressBar(); // ReSharper disable once DelegateSubtraction EditorApplication.update -= Update; } }