- Home /
Mouse cursor not hiding!
here is my script as it says it wont hide
function Update () {
Cursor.visible = false;
}
Comment
Answer by allenallenallen · Aug 03, 2015 at 05:35 AM
A few problems here.
First of all, did you attach this script to a game object in the hierarchy? If not, it will never run.
Second, don't put Cursor.visible = false; in function Update() because this is called once per frame. You don't need to keep setting it if you only need to do it once.
Put it in function Awake() or function Start().
Your answer
Follow this Question
Related Questions
Script for collectiong keys to escape 2 Answers
Wait() is not working for me! 2 Answers
Change light when in trigger and pressing "E" ? 2 Answers
Unity 5.6.1 Pick Up And Read Note Script 3 Answers
Need an enemy script that makes him wander and detect 1 Answer