O'Reilly logo

Building an FPS Game with Unity by John P. Doran

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

Customizing our weapon's properties

Now, it's great that the weapon looks like our new weapon, but it fires and moves exactly like a pistol. In this section, we are going to modify the properties of our weapon to give it the behavior we want by using the following steps:

  1. Now, let's start off by switching over to the Game tab and unchecking the Maximize on Play option if it is currently enabled so we can still access the Inspector while the game is being played. We will play the game and press 5 to bring out our weapon.

    It's important to note that while the game is being played, any changes we've made would be undone when we exist; but we can get around this by copy/pasting the component values.

  2. Press Enter to return the control to your mouse. Then, ...

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