Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink
Share
Go down

Does this help?

7 - 78%
2 - 22%
 
Total Votes: 9
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2169
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Easy Hide Cursor script

on Sat Mar 01, 2014 2:35 pm
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 
avatar
Admin
Admin
Posts : 608
Points : 3197
Rep : 406
Join date : 2013-12-11
Age : 21
View user profilehttps://www.youtube.com/user/misterninjaboy

Re: Easy Hide Cursor script

on Sat Mar 01, 2014 5:37 pm
I showed this script in one of my FPS tutorials yes, it's very simple.
avatar
Member [Lv. 3]
Member [Lv. 3]
Posts : 27
Points : 1708
Rep : 4
Join date : 2014-01-13
Location : Bijaind ya
View user profile

Re: Easy Hide Cursor script

on Sun Mar 02, 2014 9:52 am
Even though it's so simple, most of people doesn't mind in putting it in their projects before doing YouTube videos/web players.
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2169
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Easy Hide Cursor script

on Wed Mar 05, 2014 9:45 pm
MisterNinjaBoy 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
avatar
{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
Posts : 144
Points : 1915
Rep : 10
Join date : 2013-12-30
Location : Right behind you.
View user profile

Re: Easy Hide Cursor script

on Mon Mar 10, 2014 7:15 pm
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.
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2169
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Easy Hide Cursor script

on Fri Mar 21, 2014 10:27 pm
MusicKing7 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
Member [Lv. 1]
Member [Lv. 1]
Posts : 4
Points : 1417
Rep : 0
Join date : 2014-10-06
View user profile

Re: Easy Hide Cursor script

on Mon Oct 06, 2014 8:47 pm
I'm not sure my computer has enough memory to copy and paste all that code!
Member [Lv. 1]
Member [Lv. 1]
Posts : 4
Points : 1417
Rep : 0
Join date : 2014-10-06
View user profile

Re: Easy Hide Cursor script

on Mon Oct 06, 2014 9:09 pm
Screen.lockCursor = true;

Locks the cursor in the center of the screen. Someone may find this useful *shrugs*
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2169
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Easy Hide Cursor script

on Tue Oct 07, 2014 6:57 pm
Executioner904 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
Member [Lv. 1]
Member [Lv. 1]
Posts : 4
Points : 1417
Rep : 0
Join date : 2014-10-06
View user profile

Re: Easy Hide Cursor script

on Tue Oct 07, 2014 7:07 pm
BryceCain25 wrote:
Executioner904 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.
avatar
SUPER MODERATOR
SUPER MODERATOR
Posts : 279
Points : 2169
Rep : 58
Join date : 2013-12-16
Age : 17
Location : Boise Idaho United States
View user profile

Re: Easy Hide Cursor script

on Tue Oct 07, 2014 7:14 pm
Executioner904 wrote:
BryceCain25 wrote:
Executioner904 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.
Ok sounds good, It hides mine for some reason, don't have any other scripts attached...and yes I hope this was use to someone trying to figure something like this out Smile
Back to top
Permissions in this forum:
You cannot reply to topics in this forum