Dynamic Mesh Updates

In this example, we update the vertices of a mesh by creating a VRCPickup for each vertex and updating a vertices array with their positions.

Optimization ideas:

  • Only update the mesh when a vertex is moved beyond a given threshold.
  • Only update the mesh when a vertex is dropped. As a plus-up, use LineRenderers to create a sort of wireframe version of the mesh that can be update in realtime, switch them off and update the mesh when done moving.

[details=“Udon Graph”]AOVZ2W7bRhT9FYPPGmP2xUAemsVB0KYtascvtSHMcsdRQ5MGRaVRHH9ZH/pJ/YUOtVtiZMKRUie1DYqShvS9555zl+E/f/19k723+Qiyo99vsjjK85/tVXqTvSkG9fhFcTko4DUM3x72+69t9e75uLBXA9/vn4yHNVydlYOQ9bJROh5ljFkutXLI0ugQJ9IjrV1EQLEnlnKItFl8XQ4H9aAssqOb7EN2hJiih7iXjbMjwvkhvu1lRRngzavnw2RSFqQXMTCHlCUCcZ4OlhOeDoJ6Sx2Win7C2UUvi3n55+yqi+k9zhq/hhPHRo03v7g/wNdnU29vskExrG3h4dXz7Kj5t8O6GhSXs6+z7PbitncPIr+Bt7kf5baGp+WoCMNWXIQMXnEdEbGeIR61RoZbjzyJ4DDDnOoWXCTGM1gQEXIDF22il8qm+4FLB+UVcgJLpGQUwhBFhOIbuGTZfpB58R6Kun9S26peeC255BC8R8ERmwxUBmmmInLOas0DYcrGFjYorOdsoOtOrzkjo3QWABAo5RHXWiIHVCIWKI8gI3ZcbTi8bvoJ1P0zWw2sy2Fpe5c7b7PdbAYsrX8Ql7vJahdxnVL38GTyYe/gaujLKh+43sEZVMPk5pOkzua3d/BslNejCp4UMKorm/cOfh25fOB/hPFp+Q6KJ04pK7yQxDAOWJtPnnuLsbIoUmoQ95wghwNDVHFlvZFGOJE1kdmDTo8HeQ1VUutlCvVV+qDfX1uxiHuXAG2NOyWbgefAmJQsJOWTFD9KfVJqcMjFGLHWARPnvlIGOx1fw7rzU3gWEOgA0hrrEGEsQSCYRDolL4RBCYGDMBi2y5Y3Z9t0e58iV+w7rWwxjGV1laL3Eupn5dV1WTSpZpZm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