I’m trying to use this library to generate a shattering effect for a 2d game. When I click “Generate Fragments” in the editor it works as expected and creates 50 pieces from my original sprite, and assigns them each a Mesh from the original sprite. I can click the object pieces in the editor and see them. However, when I click away to any other object and click back on the prefab, all of the pieces have lost their mesh, and become just green outlines in the editor (just the collider). The same happens if I Generate Fragments and run the scene – the pieces are not rendered due to missing meshes. Why do the meshes keep getting lost?
Here’s a video of the issue: https://www.dropbox.com/scl/fi/mo3bwebd2zzvt6452vdnn/meshes-lost.mov?rlkey=ena77y9f5vqcqfadcw8r3rwgm&dl=0
2