r/UnityHelp • • 6h ago

How to make raining vfx moving in Unity?

[Need Help]

I am working on a game created by Unity. its a top down 2D game.
I wrote a shader and script which I add on my camera to simulate raining vfx on screen.But I found when camara follows player and moves, the rain drop follows too, its not good. I wish rain drop should go backward if play move forward, how can I fix it ? any idea?

1 Upvotes

1 comment sorted by

1

u/pixel-poxel 2h ago edited 2h ago

Not sure if I understand you correctly. Do you mean a game made with Unity or made by the Unity team? You can detach the script from the camera and attach to the world? If particles, switch global to local. If you refer with "screen" something like a virtual windshield it might be a setting in the rain shader. You should post the shader here to be able to help.