How do I make a texture pan back and forth?

Hey not sure if this if this is possible but I would like to make a texture that alternates between panning to the left and panning to the right, without using blueprints.

I know how to plug a scale parameter multiplied with time into a normal panner to control the speed and direction of the panning, but I’m not sure how to make it change every say 5 seconds without using an animation or blueprint.

Would this be doable in the material editor?

Hi, I’m currently away from my pc, but if I’m not mistaken, you can use the ‘Sine’ function in the material editor to achieve this. This function effectively smoothly transitions between 2 values. and you can plug this into a Panner to create the effect you want :slight_smile: If you need screenshots, or additional help, let me know, and I’ll see what i can do when I’m back at my PC :slight_smile:

But if you don’t want to wait then just look up the Sine function in the documentation and it should tell you what you need to know.

Regards, Josh.

Did you manage to get this sorted? :slight_smile:

Yep that works great - thanks for the help! :slight_smile:

Can someone post a screenshot? Seems so simple - not sure why it isn’t working for me.