Path following problem

Hello, I’m a Unity’s VFX Graph begginer and I’m stuck on a problem with moving particles.
I tried to follow some tutorials on YouTube and Unity’s Documentation about making particles following a line but it just does not work for me, my particles are stuck on starting point wherever the second, third or fourth is or sometimes just go straight-forward on a line I can’t edit.

I’m trying to use the “Sample Bezier” block with a custom property named “Progress”, as the tutorial I saw told me.

I’m using Unity’s HDRP (High-Definition Render Pipeline).

Can someone out there help me ?

On the screenshot, I selected the “D” point of the curve, and we can see the particles obviously don’t go there.

Thank you in advance for your help !

It depends what you need. Your graph sets some random velocity completely independent of curve, so this is probably why they move. You set position from curve every frame, but it will be always the same: 0. The reason is you divide spawn index by 100, but it’s uint, so the result will be also uint. Click the gear with arrow in corner and change it to float.

Anyway, if you want to move particles over time you can do this:

Or if you want to spawn them on curve evenly try this:


Note: the spawnCount location must be Source in the second example.

Thank you a lot !

It worked

I changed the return type of division by error and didn’t thought any second that it could mess all the graph up…

Have a nice day, I’ll try to think better !

You seems to be experienced with Shader Graph, maybe you could help me with this one ? Thank you in advance !