Hey,
I’m developing a menu with NativeUI and when I start the menu my camera is getting rotating until I move my mouse. When I click in the menu or go into a submenu it’s also all fine, but when I go from the submenu back into the main-menu it starts rotating again.
code:
Can someone help me there?
1 Like
As I think, you can’t really fix that in this resource, you will probably need to edit NativeUI itself then. BUT if you do not need the mouse anyway you can deactivate it.
1 Like
No I don’t need the mouse. How can I deactivate it?
1 Like
Ok I added these lines:
_menuPoolMain:MouseControlsEnabled (false)
_menuPoolMain:MouseEdgeEnabled (false)
_menuPoolMain:ControlDisablingEnabled(false)
But now the camera is rotating in a submenu… how can I the disable the mouse for the submenu?
2 Likes
As I now the submenu has another name different from
So you will have somewhere a local (probably) where your submenu is stored, just rename it to it’s name if the submenu.
Edit: something like this:
local myname = createSubmenu()
Myname:MouseControlsEnabled
Of course the function will not be createSubmenu, but it’s a example
1 Like
Got it fixed! Thanks for your help! 
2 Likes
How do I disable the rotation?
1 Like
Thank you so much!!! This works for the EUP UI as well you just need to change _menuPoolMain to menuPool!
3 Likes
Where did you put it in the ui?
1 Like
Did you find where to put this ?
Inside of the NativeUI.lua file, line 2452 there is a true or false setting labled “MouseEdgeEnabled”, change this setting from true to false, this will stop the screen from spinning upon opening.
I hope this helped 
6 Likes
updated line for 2024 is line 2427
thanks, i have an out dated version of NativeUI i suppose