x


mouse dissapear

i need the code that lets the cursor disappear

more ▼

asked Oct 14 '10 at 03:45 AM

joe 3 gravatar image

joe 3
29 5 6 10

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Use Screen.showCursor:

Javascript:

function Update() {
Screen.showCursor = false;
}

C# (you'll need to make sure your script is named hideCursor.cs):

using UnityEngine;
using System.Collections;

public class hideCursor : MonoBehaviour {
 public void Awake() {
  Screen.showCursor = false;
 }
}

Boo (like C#, make sure your script is named hideCursor.boo):

import UnityEngine
import System.Collections

class hideCursor(MonoBehaviour):

public def Awake():
Screen.showCursor = false
more ▼

answered Oct 14 '10 at 06:30 AM

PeterDC gravatar image

PeterDC
277 2 4 14

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5087
x984
x535
x78

asked: Oct 14 '10 at 03:45 AM

Seen: 1457 times

Last Updated: Oct 14 '10 at 06:34 AM