- Home /
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
Answer by Omir · Mar 20, 2013 at 06:22 PM
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
Answer by Dasaco · Mar 20, 2013 at 07:08 PM
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
Your answer
Follow this Question
Related Questions
Deleted sub-object causing lag 1 Answer
Make object invisible when camera is not seeing it 1 Answer
Horrible lag when selection objects in Editor hierarchy 0 Answers
Reducing lag in networking. 1 Answer
Detecting the subobject of a mesh 1 Answer