Lost the script for the cursor

I have previously made it so that the cursor had disappeared from view during playback, but recently I tried doing it again and managed to replace the whole cursor script, the default one. I have tried putting in various scripts in which are meant to make it disappear but it just says Assets/Cursor.cs(1,14): error CS8025: Parsing error, so I can’t even play any of my scenes now. Someone please help :(:(:(:(:frowning:

The default one? If there is one in the Standard Assets that come with Unity, you can get it back with Assets->Import Package.

Otherwise, you should probably fix that parsing error :stuck_out_tongue:

Or, you could use the Scripting Reference to create your own.

I don’t know what thing to import, I’ve tried a few, would I have to delete the Cursor from the game and then try importing all the things in the hope that it recognises that something is missing and imports it? Also, I can’t fix the parsing error as right now there is just some random code in there from me trying to get it to work, I just need to know the original script for the Cursor :frowning:

http://imageshack.us/a/img210/6021/errorxf.png

Try renaming the file to cursor.js.

I managed to solve it by looking at a Youtube video and copying someone else’s default code for their mouse, it was actually:

using UnityEngine;
using System.Collections;

public class cursor : MonoBehaviour {

void start (){
}

void Update () {

}
}

Thanks for all the help everyone. :slight_smile: Peace out