-
Notifications
You must be signed in to change notification settings - Fork 234
Open
Description
Hello. I have a Build() process in my project where I need at one point, to change the current Mesh of the GameObject (and theire is an ElasticDeformable on it. How do I do it correctly without breaking everything ?
`
Deformable deformable = gameObject.GetComponent();
deformable.ChangeMesh(ModelData.Mesh);
deformable.ResetDynamicData();
`
And it work, but then I have a lot of errors: "A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details."
It seems to work thought, but I don't like those errors :/
My Goal is to "Reset" the ElasticDeformable, then Change the Mesh of the MeshFilter, and then "Enable" Again the ElasticDeformable. One note thought: Doing so while enabling/Disabling the ElasticDeformable Component doesn't seams to work.
Metadata
Metadata
Assignees
Labels
No labels