Too many clones crash unity

Im making a fps and trying to add a destruction feel to it,i got a tool for fracturing but when it fractures the parts turn into clones of the object so if the objects smashes into 7 pieces it creates 7 gameobjects(clones) and with 20 of those unity crashes,thing is that 20 panels crash unity…but i need skyscrapers with loads of them so that they can collapse down like bf3-4 and some cod,any way getting objects fractured without making tons of clones and crashing unity?

1 Answer

1

You’re going to need to either write your own mesh/vert manipulation code, or model separate parts for your objects. If I were to do this, I’d model a single mesh of the object, then a separate model with the mesh broken into pieces (fractured). If you want to do it the easier way (separate models), have a look into Destroying the original and Instantiating the replacement. As far as the modeling part itself, you’ll need to look into documentation for your 3D modeling application.

EDIT: IF YOU’RE USING A PLUGIN, SCRIPT, OR SOME OTHER TOOL OR ASSET:

Look into Unity documentation about polygon limit, and read the documentation on your meshinator tool. If there is no documentation on the tool, contact support (the guys that developed the tool).

No need to be upset over the answer given. My mistake for trying to give good advice. Edited answer to include what you should do regarding the tool you are using that doesn't seem to be working well for you. Usually a crash from too many objects means either your tool is badly written, or too many polygons or textures are being rendered. Posting your computer's specs may help determine that.

–