Search Unity

Cursor.SetCursor artifacts

Discussion in 'macOS' started by bartofzo, Dec 18, 2019.

  1. bartofzo

    bartofzo

    Joined:
    Mar 16, 2017
    Posts:
    151
    Hi,

    Running into the following problem with Cursor.SetCursor on MacOS.
    The transparent area has some weird gray pixels on some systems. Not all! See the attached image.

    Also, SetCursor doesn't always work, without any reason sometimes the cursor just doesn't change.

    This all is using CursorMode.Auto. When I set it to ForceSoftware the problem does not occur. But this is not really an option since it's really laggy.

    I am using a 32x32 TIFF file as the source and the import setting is set to Cursor and uncompressed.

    Anybody else ever faced this? Thanks.
     

    Attached Files:

  2. azeroth272

    azeroth272

    Joined:
    Dec 9, 2015
    Posts:
    4
    @bartofzo Did you ever figure out a solution to this that doesn't require use of the ForceSoftware option? I just ran into this same issue on my MacBook.
     
  3. Dmitry-Pyalov

    Dmitry-Pyalov

    Joined:
    Dec 13, 2011
    Posts:
    125
    You can do nothing with this - this is a macOS bug on some MacBooks (Intel GPU's I think) - you can test a non-Unity app and get the same results.
     
    azeroth272 and PixelJ like this.
  4. azeroth272

    azeroth272

    Joined:
    Dec 9, 2015
    Posts:
    4
    @Dmitry-Pyalov That's a bummer. Thanks for the info, though. Good to know.