Only for CocosCreator
The core file is assets/Script/Lib/OptimizeDrawCall.ts
. You can copy it to your project.
Topic: https://forum.cocos.com/t/draw-call/80902
- common prefabs(bag)
- rank(scroll view)
- support multiple paths(Now, you can also use multiple nodes that contain this Component to do it)
- support multiple root nodes
- support inactive nodes
- support proxy mode(when you destory optimized node's parent, it will not destory automatically)