Pan texture to always face camera

Hi, I’m trying to figure out a way of panning textures to always face the camera view.

CameraDirectionVector almost does what I need it to. If the camera rotates around an actor 180 degrees, the node will return a value of 0-1. But if the camera continues around from 180 to 360 degrees, the value goes back from 1-0.

What I need is the 360 degrees of the camera yaw mapped it to a 0-1 value that I can use to pan the texture.

66894-01.gif

Hopefully you can see from this gif that the texture follows the camera roughly. The pitch is fine, but just the yaw that doesn’t go all the way around.

Solution found on the forum: https://forums.unrealengine.com/showthread.php?91618-Pan-texture-to-match-camera