Making a textured beam

Give two points in the world, I want to create a beam like this one

104873-beam.png

The red dots are the origin and target coordinates. The extremities must have a bit of unstretched texture and the texture between the two points must be stretchable by any amount since this beam can have any length.

My two main questions are:

1 - How do I build the actor to have this stretching behaviour

2 - How can I easily change it’s orientation give the origin and target?

this should help

https://www.youtube.com/watch?v=SccSLUk1l2A