📜  统一创建行 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:14.279000             🧑  作者: Mango

代码示例1
// you need the LineRenderer component in your object

var line = gameObject.AddComponent();

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