private static void AddWireVertex(WireVertex vertex) { if (wireMeshVertexCount >= WIRE_MESH_VERTEX_CAPACITY) { Debug.LogWarning($"[Xenon.VisualDebug] Too much vertices are being generated, cap is at {WIRE_MESH_VERTEX_CAPACITY}"); return; } wireVertices[wireMeshVertexCount++] = vertex; }
private static void AddWireVertex(Vector3 pos, Color color) { if (wireMeshVertexCount >= WIRE_MESH_VERTEX_CAPACITY) { Debug.LogWarning($"[Xenon.VisualDebug] Too much vertices are being generated, cap is at {WIRE_MESH_VERTEX_CAPACITY}"); return; } //wireVertices.ReinterpretStore(wireMeshVertexCount * 4, pos.x); //wireVertices.ReinterpretStore(wireMeshVertexCount * 4 + 1, pos.y); //wireVertices.ReinterpretStore(wireMeshVertexCount * 4 + 2, pos.z); //wireVertices.ReinterpretStore(wireMeshVertexCount * 4 + 3, (Color32) color); wireVertices[wireMeshVertexCount++] = new WireVertex() { position = pos, color = color }; }