Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  ObiParticleRenderer is never lit in build.
#3
(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!
Reply


Messages In This Thread
RE: ObiParticleRenderer is never lit in build. - by josemendez - 06-08-2021, 08:26 AM