- Home /
SetCursor is not a member of Cursor
http://docs.unity3d.com/ScriptReference/Cursor.SetCursor.html
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.
Answer by robertbu · Sep 28, 2014 at 04:56 AM
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.
I just so did happen to have the script named 'Cursor'. Thank you Robert
Your answer
![](https://koobas.hobune.stream/wayback/20220613163931im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
2D platformer cursor 1 Answer
Shooting in direction of mouse cursor 2d 5 Answers
Lock mouse position with a Rect, possible? 1 Answer
2d - Follow cursor by having object rotate around z-axis 1 Answer
Mouse cursor disappears in Web Player 0 Answers