How do I get the length of the whole Trail renderer that is drawn in Unity? For line renderer, we can achieve this using the 1st and 2nd points of the line such as:
var length = (position2 - position1).magnitude;
But unfortunately I could not find the same for trail renderer since it uses multiple points. So how do I achieve this?