public static void DrawLineStrip(Vector3[] aVert, Color color, bool depthTest = true) { Mesh mesh = PrimitiveMeshFactory.LineStrip(aVert); 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); }