Lag becouse of subobjects in object

Hello everyone,

I’m newbie here and I decided to create a game. So I have a problem now.

I downloaded an item (chest). When I imported it into unity and added it as an object, I saw very much objects in this object (like chest’s bottom side, upper side and etc.).

So when I added it into a game, it started lagging very much. I have tested it and figured out that it is because of this chest 100%

What should I do to remove that lag?

Thank you very much

Sorry for my bad english,
Daniel

2 Answers

2

If You Have a Pro You Can Use CombineChild Script by going to Component>script> optimization >Combinechildren , Other than that you can make a prefab of that object so that it will consist of only one draw call To do that just simply drag chest to project windows and drag it into one of folder , make it as static if not animating and make sure dynamic and static batching are enabled … you can use any 3D modeling application like maya or 3ds max to edit it or simple use plugin within unity available in asset store

Thank you for your answer, but I solved it. It was just because I deleted sub-object of that object and it gave me an error because animation couldn’t find it, that was the reason of lag