PARTICLES ARE IGNORING MASKING OPTIONS WHEN USING A MASK

Mask is not work in 2017.1.3p2 , the details turn into the page “https://issuetracker.unity3d.com/issues/particles-are-ignoring-masking-options-when-using-a-mask”(Issue ID 972273)
PARTICLES ARE IGNORING MASKING OPTIONS WHEN USING A MASK
Thanks

3 Answers

3

I also had this bug when trying particles inside mask. Particles work fine in scene mode, but when I try in play mode it does not render.
I found that this is caused by Z position. If Z is lower than mask, particles are not rendered. This behaviour exists only when “Visible inside mask” option is set. Sorting layers do not matter and turn useless at this point.
Its a pity, since now I have to overhaul a massive amount of different spawner prefabs.

I can’t reproduce this problem. Are you sure you actually created a gameobject with the “SpriteMask” component and picked a proper sprite as mask? Tried to lower the alpha cutoff?

I simply used this sprite as mask. This is the particle system without mask.

Here is how it looks like with visible inside and outside.

In case someone else ends up there with a similar issue, especially when your particle system is on a dedicated layer:
The mask may simply not work if your “post processing layer” is after the script which blits the rendering to render your particle system on a different layer. The post processing layer script has to be before the other script.