Remove Cursor Issue

In my game I have added this to a javascript, yet whilst moving around I can see the cursor flickering every now and again, what am I missing?

function Update () {
//hide the cursor (at the beginning of the game)
Screen.showCursor = false;
}

I am not savvy with programming when it comes to unity, so baby steps please. Thank you.

I guess from the 100 odd views all those people are clueless.

Set it at Start() instead, possibly.

There are situations like yours that this code doesn’t work.
so use this code:
Screen.lockCursor = true; //true = No Cursor