Rotate Mesh To Face Camera
Hello, I am trying to create a materiel that will rotate a mesh only on the X axis to face the camera. I have found an example by Epic to do this on the Z axis but I cannot figure out how to convert to X (or Y). I cannot do this wilth blueprints, I have to use the material.
I made a working blueprint for a material that will always face the camera. When applied, the mesh will rotate around the Z or X axis. Attached is a screenshot of the blueprint. Plug the output of either "RotateAboutAxis" into the World Position Offset of the material to to select which axis to rotate around.
The advantage of this blueprint is that the image scales (billboard images don't scale in the editor) and there is no "Custom" function used. Other blueprints I've seen also have the problem of the image not scaling.
I'm hoping someone can help me get both to work together so that this will act the way billboards do and always face the camera in all axis. Currently my blueprint will only rotate in one axis to face the camera.
answered Feb 05 '18 at 08:30 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here