Search Issue Tracker

Fixed in 7.1.1

Votes

8

Found in [Package]

6.7.1

Issue ID

1163474

Regression

No

[LWRP] Sprite Renderer ignores Sprite Mask when Lightweight Render Pipeline Asset Data is set to 2D Renderer (Experimental)

Package: Scriptable Render Pipeline Lightweight

-

How to reproduce:
1. Open the "SampleScene" Scene in the attached "case_1163474.zip" Unity project
2. In the Project tab, select the "LightweightRenderPipelineAsset" Asset
3. In the Inspector tab, change the Data property of Renderer Type to "New 2D Renderer Data"
4. Observe the Scene view

Expected result: the Sprite Renderer Component remains partially hidden
Actual result: the Sprite Renderer Component is not displayed

Reproducible with: 2019.2.0b6, 2019.3.0a6

Note: 2D Renderer (Experimental) introduced in Unity 2019.2. Unable to test on versions earlier than 2019.2.0a10 due to errors. The behavior of the Sprite Renderer Component's Mask Interaction property resembles its behavior when no Sprite Mask Component is present in the Scene.

  1. Resolution Note (fix version 7.1.1):

    Issue fixed on Universal Render Pipeline Version 7.1.1 and above on latest Editor version 2019.3.

Comments (10)

  1. Karabulutmeric

    Sep 16, 2020 08:13

    I'm using unity 2020.1.5f1 with using URP version 8.2.0. When i using UPR, sprite mask doesn't work at all. I'm stuck on this issue. I try all settings but still it doesn't work. So how is that "Fixed" i can't really understand.

  2. nicmarxp

    Sep 03, 2020 07:26

    I think there should be a warning when using the 2D renderer that you need to enable Stencil/Depth buffer on the "URP 2D Renderer Data". In case someone doesn't figure it out, I hope this helps.. :)

  3. MaykeBr

    Aug 05, 2020 02:55

    Nvm, i forgot to enable "Use Depth/Stencil buffer"

  4. MaykeBr

    Aug 05, 2020 02:47

    Still have this issue on 2019.4.5f1

  5. svkotelnikov

    Mar 11, 2020 15:00

    Still got this issue in 2019.3.4 with lwrp and urp (Forward renderer: The sprite masks work 2d Renderer Exp. : Doesn't)

  6. Dazo1985

    Nov 05, 2019 10:10

    Still got this issue in
    2019.2.11f1

    Forward renderer: The sprite masks work
    2d Renderer Exp. : Doesn't

  7. Rileeno

    Oct 09, 2019 18:29

    How was this fixed in 7.1.1 if the latest release is still 6.9.1? I saw that the URP is at version 7.1.2 but I don't have the package in Unity 2019.2.8f1

    In addition, sorting layer and custom ranges don't seem to make anything work better in 6.9.1

  8. finbogg

    Sep 04, 2019 20:34

    I was successfully able to mask a sprite with another sprite when using the LWRP. I made sure my mask sprite was on the right sorting layer (on top) for the additional settings. I then had to set custom range sorting layer to match the same layer under additional settings. I hope this explains things. Please don't hesitate if you want more details.

  9. exzizt

    Aug 29, 2019 18:33

    I noticed that as well @MOUNTBLANC. That's what I did to fix it as well.

  10. mountblanc

    Jul 16, 2019 16:26

    If you set the sprite mask to a custom range the mask does work. Perhaps this info helps find the bug quicker.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.