Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ming on August 20, 2014, 08:38:44 PM
-
Hello all
im having an issue with SetMouseCursor, i want to hide the mouse cursor only (but NOT lock it)
to test it i made a simple empty scene attach an fsm to the camera with 2 states 1 to hide the cursor and 1 to show it (both with globals to manually trigger them)
when i hide the cursor it flickers when over the game window, ive spent hours poking at it to no avail,
what i know so far is
lock cursor = hides cursor ? and locks it
hide cursor = flicker
lock and hide = ok
and i dont know if this may be another manifestation of it but after locking and hiding the cursor if i press escape to get the cursor back again it then flickers when not "hidden", any help much appreciated
thanks
-
I've noticed it doesn't work very well in the play window but when you build it will work. if it still is not hiding, I found this that works for me. Just throw the script on a game object. http://answers.unity3d.com/questions/33570/how-to-hide-the-cursor.html (http://answers.unity3d.com/questions/33570/how-to-hide-the-cursor.html)
Quoted answer from the link: "If you want to hide the cursor through the entire game you should add the "Screen.showCursor = false"-code inside the Start function ;)"
-
Does this occur in your build or the editor?
-
Hello
thanks for your help, yes im in the editor i havent done a build of this project yet so maybe that will fix it, does this script work in the editor mode id love to get it to stop flickering so i can test properly, im developing for the oculus vr so flickering things flying about your head is annoying.
-
Hi, a bit late for the gathering. I've had the same issue recently. It seems to be related to the PlayMakerGUI object (find it in you Object Hierarchy) When i delete it, the flickering stops. However its quite a persistant little imp, as it spawns itself when ever a change is made in Playmaker, just banish it again.
Hope this helps.
-
To fix the problem, find PlaymakerGUI on your scene( don't delete it ), then just uncheck control mouse cursor, and your problem will be solved.