c# - error CS0117 in Unity -


i working in unity 5.1 beginner, got error , i've no idea how solve this:

assets/sampleassets/cameras/scripts/freelookcam.cs(39,32): error cs0117: `unityengine.screen' not contain definition `cursor' 

my script is:

   private void ondisable()     {         screen.cursor.lockstate = cursor.visible;     } 

just remove screen. code becomes:

private void ondisable(){   curser.lockstate = cursorlockmode.locked; } 

however, if want hide/display cursor use this:

cursor.visible = true; cursor.visible = false; 

Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -