Search Unity

Bug Cursor.SetCursor() does not work in editor

Discussion in 'Linux' started by mysticfall, Jun 14, 2017.

  1. mysticfall

    mysticfall

    Joined:
    Aug 9, 2016
    Posts:
    649
    I tried to change the default cursor with Cursor.SetCursor API, but if I give CursorMode.Auto then nothing seems to happen while if I change it to CursorMode.ForceSoftware, the custom cursor shows but its drawn under the native desktop cursor, instead of replacing it.

    I've already set the texture type to 'cursor', and changing it to other types doesn't seem to effect the problem.

    By the way, I was unable to test it in a build, as the whole UI is unresponsive due to a known issue, so I'm not sure if it's specific to the editor environment.

    It seems that very similar problems were reported in the issue tracker number of times for both Mac and Linux in the past, but they were all marked as 'fixed', so probably it could be a regression in a recent version.