Modifying model's mesh through code. Terrible idea?

I am making a voxel game and I was planning on modifying meshes in real time to get effects similar to this:

The voxels come apart and fall to the ground all seperately. Is it possible to modify an imported mesh through code without knowing the vertices/other stuff before hand? I

Do you think they did it by modifying the mesh through code? Or do you think they had each voxel stored seperately? I didn’t expect the latter because it seems messy and inefficient.

I don’t think they would have made a seperate animation for each different character/enemy model.
I am almost certain they didn’t use unity to make the game, so how do you think a similar effect could be accomplished with unity?

Thanks in advance

that effect in the vid looks more like a particle effect than a mesh alteration

I did something similar for a 2D disintegration effect by replacing each pixel with a particle, then doing interesting things with the particle system.

1 Like

… I should really look deeper into scripting particles one day.