public static extern void SetAllowCursorHide(bool allow); [MethodImpl(MethodImplOptions.InternalCall)]
private void OnLostFocus() { if (!EditorApplicationLayout.IsInitializingPlaymodeLayout()) { Unsupported.SetAllowCursorLock(false); Unsupported.SetAllowCursorHide(false); } InternalEditorUtility.OnGameViewFocus(false); }