绘制线条代码,其实就是指定至少两个点,然后赋予贴图即可,不废话,上代码: using UnityEngine; using System.Collections; public class LineT_1 : MonoBehaviour { private LineRenderer lineRender; ; private Vector3 v0 =new Vector3(1.0f,0f,0f); private Vector3 v1= new Vector3(0f,1.0f,0f); priv…