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