SetCursor is not a member of Cursor

When I enter the code from the link above, Unity gives me an error saying “SetCursor is not a member of Cursor”

I am new with cursors so I could be doing this all wrong.

Usually this problem is because you’ve name a script/class ‘Cursor’. By doing so, you are hiding Unity’s Cursor class. The fix is to change the name of your script/class. If my conjecture is not correct, please edit your question and add the full text of your script.