Toggling the mouse/cursor
In order to toggle the mouse/cursor we use the CursorManager
, You have to only call the .ShowCursor()
method once! As its "Requesting" the cursor.
If you request it too many times you will have to hide it the same amount of time! So only call this when opening your menu and when closing it, don't call it each frame while your menu is open.
Known issue : We don't know yet how to properly disable all actions such as opening the inventory, opening the character wheel etc. So it can be a little bit messy when using input fields inside menus. If you want to contribute to the modding research, join us on our discord.
Last updated