Reputation: 11147
I was searching for methods to optimise my game.
I was thinking if there is a way to not draw the objects that are in the camera view but are not visible to the viewer?
The thing is that i need to lower my draw calls and at any given time, there are at least 12 game objects that are not visible to the camera. Can this be done?
Upvotes: 6
Views: 3305
Reputation: 879
Kay is right to reduce draw call of objects which are not visible you need to use occulusion culling,
and if you still wants to reduce more draw calls you should use Free unity plugin "Draw Call Minimizer" by Purdyjo available on asset store.
and here is its unity video tutorial
Upvotes: 3
Reputation: 13146
What you are looking for is called occlusion culling and it's a built-in feature in Unity. In order to lower the number of draw calls there are some more techniques interesting for your problem:
Upvotes: 5