If I wanna hide the cursor, both Screen.lockCursor = true;
and Screen.showCursor = false;
seem to work for that matter. What’s the difference between this and that and when/why should I be using either?
Thanks in advance.
If I wanna hide the cursor, both Screen.lockCursor = true;
and Screen.showCursor = false;
seem to work for that matter. What’s the difference between this and that and when/why should I be using either?
Thanks in advance.
I’m not totally sure but doesn’t lockCursor center the cursor and showCursor just hides it.
Also lockCursor seems to do a better job in hiding it when you’re in the editor - if you showCursor = false; and just move your mouse away in the editor it will appear - but lockCursor prevents that - Idk any further.
The doc’s are pretty clear about the differences, maybe read them
static var showCursor : boolean
Description
Should the cursor be visible?
It is entirely possible to implement a custom cursor instead of the system one. To do this you would hide the system one, track mouse position or movement and display your own image in the needed place.
static var lockCursor : boolean
Description
Should the cursor be locked?
The cursor will automatically be hidden, centered on view and made to never leave the view.
Thanks that was helpful.