Game Development Reference
In-Depth Information
With a garden full of plants, the zombie bunnies remain difficult to see in the spy view.
1.
Exit Play mode, create a new Layer, and name it Hide from Spy .
2.
Select the Camera Spy View, and uncheck Hide From Spy in its Culling
Mask list.
3.
In the Prefabs, Plants folder, assign the “Hide from Spy” layer to each of the
plant prefabs.
4.
Click Play.
The zombie bunnies are much easier to spot (Figure 11-3 ).
Figure 11-3. The plants are no longer rendered by the Camera Spy View
Unfortunately, it is possible for sneaky little critters to be missed by the spy cam's clipping plane if
they are on the terrain ground and on their side. Rather than trying to fine-tune the clipping plane,
it might be more fun to try a different approach. You will repurpose the slug's particle system and
tailor it to show in the spy map.
1.
Exit Play mode.
2.
Drag the Slug prefab into the scene, and drag the SlugSlime out of it.
3.
Agree to losing the prefab, and then delete the Slug.
4.
Rename the SlugSlime to ZB Spot .
5.
Drag it into the middle of the garden so you will eventually be able to see it in
the spy map.
6.
In the Inspector, set its Start Size to 3 and its Gravity Multiplier to -5
(so it moves up into the clipping plane).
7.
Set the Max Particles to 1 , open the Shape rollout, and set its Box Z to 0.1 .
The particle should now be pulsing happily in the middle of the spy view (Figure 11-4 ).
 
Search WWH ::




Custom Search