I am trying to make an infinite background for my 2D platformer, but for some reason the code isn't working. How can I edit the code to make it work?


@stu-310170 You need to use Time.deltatime instead.
if you want a shader with a time varying offset , you can make that through the shadergraph in unity. no need of shader scripting. and its fun.