I am developing a 2D game which uses sprite masks to limit the player's information to a circle around them. The feature works perfectly in the Unity Editor. It can be disabled and reenabled, have the shape of the mask itself change, and more.

However, whenever I build the project and run the executible the screen is blank. If I disable the sprite masks altogether, the sprites are all visible. I have debugged Unity3d builds before, but that was specifically looking at variables as they changed during the execution of the program.

Does anyone have any specific knowledge related to sprite masks or have any idea why this would occur? I can provide more information if necessary. My current thought is that the sprite mask is masking everything for some reason. It's weird to me though that it would only break in the build.

All help is appreciated.

  • \$\begingroup\$ Welcome. I would say that you are using the wrong pixel format for the masks, but then there is the fact that they work in editor. Can you test the build in another machine or device? \$\endgroup\$ Nov 27, 2017 at 23:25
  • \$\begingroup\$ Yes we have tested it across the entire team on multiple devices. We have also isolated it to the sprite masks as any form of sprite masks results in a completely blank screen. If we have sprite masks enabled, but have nothing set on our platforms that indicates they should be hidden by sprite masks, then the screen is still blank. \$\endgroup\$ Dec 6, 2017 at 4:45

1 Answer 1


I had a similar issue before. It seemed to be related to the mask custom range. For example if my target order in layer is 99, then I have to set the range as [98,100]alt text

enter image description here

If I set the range as [98,99], the editor works fine, but the build shows no effect.

Here's a link to the Unity forum post where I posted this in reply to a similar problem.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .