- Home /
mouse dissapear
i need the code that lets the cursor disappear
Comment
Best Answer
Answer by PeterDC · Oct 14, 2010 at 06:30 AM
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
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Character Not Rotating 0 Answers
Left Click Script Problems 1 Answer
need teleport script fixed slightly 1 Answer