How to put a gameobject at the position of the line formed by a LineRenderer?

,

if you only have two positions you can do a ‘*Vector3.lerp(pos1,pos2, t); *