No custom cursor after windows build


When I build an RPG to windows, there are no custom cursors, just a windows arrow cursor. Any solution?

Works fine in editor, but not in windows build.

private void SetCursor(CursorType type)
CursorMapping mapping = GetCursorMapping(type);
Cursor.SetCursor(mapping.texture, mapping.hotspot, CursorMode.Auto);

    private CursorMapping GetCursorMapping(CursorType type) 
        foreach (CursorMapping mapping in cursorMapping)
            if (mapping.type == type)
                return mapping;
        return cursorMapping[0];


Unity RPG Core Combat Creator

Thanks for answers and have a nice day

I found a solution:


Now work well

Hmmm, I wonder if this was a hardware specific issue. My builds have no trouble modifying the cursor in Windows builds using CursorMode.Auto.
Something to be aware of, as it’s quite possible Auto won’t work on all systems… On machines where it works, it could trick developers into thinking their product is shelf ready.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms