When i try to play my game in maximized game tab i can't move

When i try my game in a maximized game tab, the mouse cursor doesn;t hide and i can’t move or look around until i hit the left mouse fire button. I don’t have this problem when the tab is not maximized and i can see my other tabs, the game works fine then. Does anyone know what the problem is and how to fix it, or is it a Unity glitch?

hey im having similar problem did you find out about the issue?

It looks like this might be related to how Unity handles cursor locking and visibility in fullscreen or maximized mode. Check if you are using Cursor.lockState and Cursor.visible correctly in your code. Make sure that when the game goes to fullscreen or maximized mode, you have Cursor.lockState = CursorLockMode.Locked in your script, and also Cursor.visible = false, especially when the game starts or after clicking the mouse.

If this does not help, try testing the game in a different browser - it may be a browser-specific issue. Also check for updates to Unity or any plugins you use, which may affect this behavior.

Are you playing in the Editor or on a build out game? (.exe on Windows)