Game Development Reference
In-Depth Information
As you select each component, the others freeze in the viewport, allowing you to see only the one
you have selected.
9.
Delete Flame, and try out the other prefabs, deleting each when you are
finished (Figure 8-13 ).
Figure 8-13. The Bubbles prefab
10.
From the Legacy Particles folder, drag Explosion into the scene.
11.
Deselect it, and click Play, watching it in both the Scene and Hierarchy views.
The explosion happens, drifts up, and disappears—both in the scene and in the Hierarchy
view. Inspection will show that it has animation clips on both of the particle systems and a
TimedDestructor script on the parent object. You be using the SmallExplosion prefab, modifying it to
fit the need and then turning it off with a script.
1.
Stop Play mode.
2.
Delete the Explosion object in the Hierarchy.
3.
Drag SmallExplosion into the scene, and rename it SmallExplosion2 .
4.
Inspect the components in the Inspector.
The Legacy parameters can be a bit cryptic. Because they are legacy, you won't be doing much with
them other than tweaking them.
5.
Near the bottom of the Ellipsoid Particle Emitter, turn on One Shot so you can
see a single “shot” at a time.
6.
Fill out its parameters as per Figure 8-14 .
Search WWH ::




Custom Search