Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

ReEnable mouse(movement,selection,etc) after loading game menu

$
0
0
So, i have the same problem as it is defined in here: http://answers.unity3d.com/questions/638424/screenshowcursor-true-wont-work-after-screenshowcu.html (i work on Js) The things i know, is that when my game loads and menu pops up, mouse is enabled but once i load a level, play that level, and then return to then main menu, mouse wont work. First pointer: Yes i have tried using `Screen.ShowCursor = true; Screen.lockCursor = false;` on Awake,Update,LateUpdate,Start functions, none of them work. Second pointer: My menu has an EventSystem script and a Standalone Input Module (the default ones that get imported when you insert a canvas). My guess is that one of these scripts(EventSystem or StandaloneInputModule) blocks it but i am fairly new to scripting and unity and i have no idea what to do. Anyone can help?

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>