1
\$\begingroup\$

I'm using LWRP in Unity 2019.1.12f1. The UI is in Screen Space - Camera. The shader used for the particles is Lightweight Render Pipeline/Particles/Unlit (Transparent, Premultiply).

Any ideas?

enter image description here

\$\endgroup\$
  • \$\begingroup\$ If you don't want items in your scene to draw over your UI ever, why use Screen Space - Camera rather than Screen Space - Overlay? \$\endgroup\$ – DMGregory Aug 17 at 23:08
  • \$\begingroup\$ I want post processing to affect the UI. That doesn't work with Screen Space - Overlay. \$\endgroup\$ – mr-matt Aug 17 at 23:09
  • \$\begingroup\$ So then you adjusted the plane distance of your UI Canvas to put it closer than the particles, or set its sorting layer to draw over the particles? Show us what you tried and why it's not working for this situation. \$\endgroup\$ – DMGregory Aug 17 at 23:45
  • \$\begingroup\$ According to this - docs.google.com/document/d/… - "Users need to create a ScriptableRenderPass and inject in LWRP code to render things that require different camera matrices/fov. These vary on a case by case scenario, f.ex, rendering weapons in an FPS." I don't believe there is a straightforward way to achieve this right now. You may try to decrease Plane Distance on the Canvas until particles can't get in-between canvas and camera. \$\endgroup\$ – Candid Moon _Max_ Aug 18 at 1:00
  • \$\begingroup\$ Camera stacking is on the road-map but I wouldn't expect it to be released soon. drive.google.com/file/d/1J8ChJIsAXdXdmOPtNF_FIqd9exYD0kql/view . \$\endgroup\$ – Candid Moon _Max_ Aug 18 at 1:15
2
\$\begingroup\$

Increasing order in layer solved the problem.

\$\endgroup\$

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.