msam
0
Q:

create line in unity

// you need the LineRenderer component in your object

var line = gameObject.AddComponent<LineRenderer>();

line.SetPosition(0, startingPoint);
line.SetPosition(1, middlePoint);
line.SetPosition(2, endPoint);
2

New to Communities?

Join the community