06-08-2021, 08:26 AM
(This post was last modified: 06-08-2021, 08:26 AM by josemendez.)
(05-08-2021, 10:48 PM)Nathan_TRC Wrote: FIX: I found a fix for this problem, and it is a weird one, so I am keeping this up in case someone else runs into this problem.
I had a camera that was active at scene start, and disabled in another scripts start method.
I noticed that when the camera was turned on, the problem was fixed for the entire time that build was up (If i changed scenes and came back, it was still fixed).
So, the fix was making it so the camera was turned off 1 frame after the scene started, instead of on Start.
Not sure why this error happens, and why it doesnt happen in editor.
Sounds like a bug in URP to me. Particles are rendered using a pretty simple shader that makes use of Unity's built-in shader macros for lighting. There's no reason turning on/off a camera should affect lighting or shading in any way. Still, will try to reproduce it and raise a bug report with Unity if needed. thanks!