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\$ – Hatoru Hansou Nov 27 '17 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\$ – Dante Nardo Dec 6 '17 at 4:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.