O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required