Time for action - enter the hero

Because the hero from our last game does a lot of the same stuff we want our spaceship to do, we really only have to replace the dude with the ship for fast, fun results.

  1. In the Project panel, find the HeroShip model and drag it into the Scene.
  2. In the Hierarchy panel, click on the gray arrow to expand the Character Prefab.
  3. Click on the child object called Armature, and press the Delete key on your keyboard (Command + Delete on a Mac) to get rid of it.
  4. Click on Continue when Unity warns you about losing the connection to the Prefab. Aaand... poof! No more dude.
  5. In the Hierarchy panel, drag the heroShip into the recently gutted Character Prefab. (Do this all within the Hierarchy panel not in the Project panel.) ...

Get Unity 3D Game Development by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.