业务联系 QQ:2118590660 ARKit项目外包 AR项目外包
B站地址: https://space.bilibili.com/103407808/#/
Youtube地址:https://www.youtube.com/channel/UCmDHmTjKHXA5FGh-OIHUlpw
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Line : MonoBehaviour {
private LineRenderer lineRenderer;
private List<Vector3> points;
// Use this for initialization
void Start () {
lineRenderer = this.GetComponent<LineRenderer> ();
points = new List<Vector3> ();
}
public void AddPoint(Vector3 newPoint)
{
points.Add (newPoint);
UpdateLineRende