Question by
bhayward_incrowd · Aug 24, 2016 at 03:59 PM ·
buildcursorstandalonevisiblemultiple-monitors
Cursor.visible doesn't seem to work in Standalone
Hi Everyone,
I am writing a multi-display application for which I need to make the mouse cursor invisible. I am using the following code:
public class HideCursor : MonoBehaviour {
public Texture2D CursorToUse;
void Start () {
UnityEngine.Cursor.visible = false;
}
void Update () {
UnityEngine.Cursor.visible = false;
}
}
This works fine in the editor, but does not seem to work at all in standalone.
Is anyone else experiencing this? What can I do to correct this?
Comment