Game Development Reference
In-Depth Information
Figure 4-18. The camera aligned to match the Scene view
5.
Click Play, and turn on Stats at the top right of the Game view (Figure 4-19 ).
Figure 4-19. The Stats dialog in the Game view
If you have Pro, the Stats report 47 draw calls and only three saved by batching. If you don't have
Pro and Dynamic Batching, your numbers may be different.
6.
In the Hierarchy view, select the Raised Bed object and deactivate it in the
Inspector.
The Stats now report 42 draw calls and 0 saved by batching. The Raised Bed is the only object
with two materials, so it appears that Unity can save some draw calls when objects with different
materials are combined into one mesh. To test this further, you can drag a couple of the multiple
material-using plants into the scene and watch the numbers.
Search WWH ::




Custom Search