📅  最后修改于: 2022-03-11 14:49:14.279000             🧑  作者: Mango
// you need the LineRenderer component in your object
var line = gameObject.AddComponent();
line.SetPosition(0, startingPoint);
line.SetPosition(1, middlePoint);
line.SetPosition(2, endPoint);