I’ve been working with URP and VFX Graph on Unity.2022.3 for quite a while now, but I recently needed my particles to be lit since I want them to be affected by lighting.
Unfortunately, when I try to convert the normal “Output Particle Quad” block into a “Output Particle URP Lit Quad” my particles just disappear.
Although, when I insert a lit Shader Graph in the “Shader Graph” slot I can actually see my particles, I still feel like I have less control over them in the VFX Graph. So my goal would be to have lit particles using the “Output Particle URP Lit Quad” block without having to put in a Shader Graph.
I’ve been searching online for a solution, I’ve tried adjusting my project setting and Render Pipeline Asset settings but nothing seems to do the trick. (And yes I have updated Visual Effect Graph and URP packages, and checked Experimental Operators/Blocks).
Does anyone know why this doesn’t seem to work for me? Thank you
Might be a good idea to ask this over in the vfx graph forum.
All I can say is it works for me on 2022.3.25. New visual effect, created a lit quad output connected it, disconnected the old output context, dragged the orient, size and color over life blocks over. No issues, correctly lit.
And from what I can see from your setup is that it should work too.
Can you export the effect as a package?
It’s good to see it’s actually supposed to work. I thought maybe there was something in my scene preventing me to see the lit particles, so I created a brand new scene but even then I had the same problem. I might try to upgrade my project to a new LTS version of Unity, see if that changes anything.
What do you mean by exporting the effect as a package? The actual VFX Graph? I wouldn’t really know how to do that.
Right click the visual effect asset and select export as package. It will pack the effect and all necessary resources (with a bit of overhead usually) into a file you can upload and share.
This is just too tricky to debug, maybe even share the project if it isn’t very large. Or test if this happens too in a clean empty project to make sure it isn’t a project config issue.
I don’t think the problem comes from the VFX because the problem applies to all my VFXs.
I just tried it on a brand new URP project. New scene, simple lighting, new VFX Graph, and same result… I think the only thing left is to upgrade my whole project to a higher LTS version of Unity and hope for the best. I’ll still give an update whether it works or not.
I’ve used vfx graph on 3 different 2022.x version and I didn’t encounter that problem so far (lucky me) but many other weird and odd issues. So yeah might make sense, especially since it happens in a fresh project too. Either go with latest LTS or do read the changelogs first though. I can already tell you that 2022.3.25 has a nasty problem with slots not showing up in vfx graph.
Update: I have upgraded my project to the newest LTS version (2022.3.34) and the problem is still there. I have tried uninstalling and reinstalling the URP and Visual Effect Graph packages, I have even tried changing my project from URP to HDRP and nothing seems to be the solution.
Luckily, the built-in Particle System seems to work with lit particles so I guess I’ll use that until I find a solution for the VFX Graph.