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