Hi I draw a line with
Vector2 pos = transform.position;
Gizmos.DrawLine(Vector2.zero, pos);
I want get this line’s vectors as 0-1 so i can draw a sphere and move between start and end on the line with a slider
I draw sphere but i don’t know how can i move it between start and end on the vector
Gizmos.DrawLine(Vector2.zero, pos);