FragMate CommunityLog in

FragMate - Software and Game Developer Community, including Resources, Forums, Marketplace & More.

Easy Hide Cursor script

Share

pollDoes this help?

YES! This is absolutely great!
7
78%
No, this needs to be improved, ie: errors, simplicity etc
2
22%
Total Votes:
9

descriptionEasy Hide Cursor script

more_horiz
This is a very very easy script
here is a basis
1) type this between the two functions:
Screen.showCursor = false;
or
Screen.showcursor = false;

Its been a while since i've used JavaScript..so try the first one, should work
this will hide the cursor when you click on the window
this topic will be updated for more advanced ways of doing this
-BryceCain25
 Smile 

descriptionRe: Easy Hide Cursor script

more_horiz
I showed this script in one of my FPS tutorials yes, it's very simple.

descriptionRe: Easy Hide Cursor script

more_horiz
Even though it's so simple, most of people doesn't mind in putting it in their projects before doing YouTube videos/web players.

_________________
»»--> ۞ xSilentKiller ۞ <--««

descriptionRe: Easy Hide Cursor script

more_horiz
[You must be registered and logged in to see this link.] wrote:
I showed this script in one of my FPS tutorials yes, it's very simple.
yes indeed, in fact this is one of the first lines of code i ever written in JavaScript. I'm glad you knew of it too Smile

descriptionRe: Easy Hide Cursor script

more_horiz
The first line of code I ever written in JavaScript was uhhhhh..... lemme get back to you on that one after I learn JavaScript. And mabye C# and how about Boo XD.

_________________
-MusicKing7

descriptionRe: Easy Hide Cursor script

more_horiz
[You must be registered and logged in to see this link.] wrote:
The first line of code I ever written in JavaScript was uhhhhh..... lemme get back to you on that one after I learn JavaScript. And mabye C# and how about Boo XD.
Smile its ok, in fact i only started to learn JavaScript because i knew some background before starting with unity the summer of 2012...its easier to start with the base of the language and start from there

descriptionRe: Easy Hide Cursor script

more_horiz
I'm not sure my computer has enough memory to copy and paste all that code!

descriptionRe: Easy Hide Cursor script

more_horiz
Screen.lockCursor = true;

Locks the cursor in the center of the screen. Someone may find this useful *shrugs*

descriptionRe: Easy Hide Cursor script

more_horiz
[You must be registered and logged in to see this link.] wrote:
Screen.lockCursor = true;

Locks the cursor in the center of the screen. Someone may find this useful *shrugs*
It hides the cursor aswell? I really don't get why you are replying like this. This is simply for someone (beginners intentionally) to implement a script that will center their cursor instead of flying around

_________________
-BryceCain25

descriptionRe: Easy Hide Cursor script

more_horiz
[You must be registered and logged in to see this link.] wrote:
[You must be registered and logged in to see this link.] wrote:
Screen.lockCursor = true;

Locks the cursor in the center of the screen. Someone may find this useful *shrugs*

It hides the cursor aswell? I really don't get why you are replying like this. This is simply for someone (beginners intentionally) to implement a script that will center their cursor instead of flying around

No, this just locks cursor in the middle of the screen. I use both at the same time. Someone might find it useful.
Permissions in this forum:
You cannot reply to topics in this forum