How to reset default cursor pointer after using a custom one?


I’ve used this:

Cursor.SetCursor(crosshairs,, CursorMode.Auto);

to use a custom cursor, but can’t seem to find the code to restore the default cursor. Any suggestions?

Thank you.

At Start() , get the default texture

            //Resets the cursor to the default  
    Cursor.SetCursor(null,, CursorMode.Auto);

The default cursor settings in the player settings worked in the editor but it did not show up in a build. Also limiting the texture size to 32x32. I resolved this issue by using Cursor.SetCursor method in a script to change the cursor.

[SerializeField] Texture2D cursor;

void Start() {
       Cursor.SetCursor(cursor,, CursorMode.ForceSoftware);

Real nice, Ericool… Thank you!