// line // ------------------------------------------------------------------------ public static void DrawLine(Vector3 v0, Vector3 v1, Color color, bool depthTest = true) { Mesh mesh = PrimitiveMeshFactory.Line(v0, v1); if (mesh == null) { return; } Material material = GetMaterial(Style.Wireframe, depthTest, false); MaterialPropertyBlock materialProperties = GetMaterialPropertyBlock(); materialProperties.SetColor("_Color", color); materialProperties.SetVector("_Dimensions", new Vector4(1.0f, 1.0f, 1.0f, 0.0f)); materialProperties.SetFloat("_ZBias", s_wireframeZBias); Graphics.DrawMesh(mesh, Vector3.zero, Quaternion.identity, material, 0, null, 0, materialProperties, false, false, false); }