Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[support] CP Morphing Lab - programmatic base and target assignments during runtime?

Discussion in 'Assets and Asset Store' started by laserted, Nov 12, 2011.

  1. laserted


    Nov 12, 2011
    Greets - I have been using CP Morphing Lab for a few months now on a relatively straightforward project, multiple mesh groups, but only 4 targets per group - and it has been working remarkably well. We've decided to "up the ante" a little and I'm curious if I can define the base and target meshes during runtime inside the script? I expect that I'd have to kill data in the original array, hopefully not have to do this by changing scenes. I fully understand that it would be my responsibility to get the meshes back to neutral before trying a change, else risking some form of "deadly mesh explosion". All new base and target meshes have the exact same vertex count, so arrays would not be changing size.

    Also, is there any progress on getting the "...leaking meshes. Please use the MeshFilter.sharedMesh" error to go away?