Search Unity

Feedback Sprites Mask With Custom Range Not Working After Build

Discussion in '2D' started by ElnuDev, Apr 13, 2019.

  1. ElnuDev

    ElnuDev

    Joined:
    Sep 24, 2017
    Posts:
    298
    Hello everyone!

    Well, the title pretty much says it all. Sprite Masks with Custom Range aren't working after building to Standalone for me. I did a bit of digging, and I found an identical issue to mine on Unity Answers:
    That was in June of 2018, and it seems that the bug still isn't fixed. I'm on Unity 2018.3.9f1 on Linux, running the Standalone on Linux as well. I haven't tested it yet on any other platform.

    Thanks in advance!
     
  2. Sergi_Valls

    Sergi_Valls

    Unity Technologies

    Joined:
    Dec 2, 2016
    Posts:
    212
    Hi, please make sure the sorting order of the sprite is not equal to the sorting order of the custom range. When sorting values are the same, the ordering is undefined. That could explain why it behaves differently in the build. If the setup looks correct, please report a bug. Thanks
     
    luvjungle, AlexBienvenu and ElnuDev like this.
  3. ElnuDev

    ElnuDev

    Joined:
    Sep 24, 2017
    Posts:
    298
    Thanks, that fixed it! Sorting order is easy to forget. :)