Game Development Reference
In-Depth Information
Figure 11-6. The zombie bunnies clearly visible in the spy map
The problem is, of course, that the glow planes can be seen rising up in the regular view. Once
again, you can create a layer to control which objects are rendered.
1.
Exit Play mode.
2.
Create a new layer, and name it Spy View Only .
3.
In the Project view, assign the new layer to the ZombieBunny prefab's ZB
Spot object.
4.
In the Main Camera's Culling mask, uncheck Spy View Only.
5.
Click Play, and test.
This time the particle systems appear only in the spy map.
If you have played down to one zombie bunny a few times, you are probably thinking it would be
nice if it was easier to see which direction the Gnomatic Garden Defender is pointing. You've already
got a layer set up, so it will be easy to add an arrow to the top of the Gnomatic Garden Defender that
renders only in the spy map. And what could be more appropriate than a nice red cone shape?
1.
Focus the Scene view on the Gnomatic Garden Defender.
2.
From the Chapter 11 Assets folder, import the Gnome Arrow asset into the
Imported Assets folder in the Hierarchy view.
3.
Under Rig, set its Animation Type to None and click Apply.
4.
Drag the new asset into the Hierarchy view, and use “Move to view” to center
it on the Gnomatic Garden Defender.
5.
Rotate the arrow to align it in the proper direction (Figure 11-7 ).
 
Search WWH ::




Custom Search