unity line renderer get positions code example
Example: unity line renderer position count
int AmountPositions;
AmountPositions = GetComponent<LineRenderer>().positionCount;
int AmountPositions;
AmountPositions = GetComponent<LineRenderer>().positionCount;