bool IUIElementsUtility.ReleaseCapture() { #if UNITY_EDITOR PointerCaptureHelper.ReleaseEditorMouseCapture(); #endif return(false); }
// TODO 2020.1 [Obsolete("Use PointerCaptureHelper.ReleasePointer() instead.")] /// <summary> /// Stops an event handler from capturing the mouse. /// </summary> public static void ReleaseMouse() { #if UNITY_EDITOR PointerCaptureHelper.ReleaseEditorMouseCapture(); #else if (!m_ReleaseMouseWarningEmitted) { Debug.LogError("MouseCaptureController.ReleaseMouse() can not be used in playmode. Please use PointerCaptureHelper.GetCapturingElement() instead."); m_ReleaseMouseWarningEmitted = true; } #endif }
// TODO 2020.1 [Obsolete("Use PointerCaptureHelper.ReleasePointer() instead.")] /// <summary> /// Stops an event handler from capturing the mouse. /// </summary> public static void ReleaseMouse() { PointerCaptureHelper.ReleaseEditorMouseCapture(); }
bool IUIElementsUtility.ReleaseCapture() { PointerCaptureHelper.ReleaseEditorMouseCapture(); return(false); }
private static void ReleaseCapture() { PointerCaptureHelper.ReleaseEditorMouseCapture(); }