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

Building our weapon – the mesh

Now that we have the resources to create the weapon, let's first get the mesh ready with a hand to hold it like in a normal FPS game.

  1. To start off, go to the UFPS/Base/Content/Prefabs/Weapons folder and drag the Pistol prefab out into the world. Move the object and camera until you get to the point where you can see it clearly.

    Note

    In case you need a refresher on the camera controls, here are the most commonly used ones:

    • Zoom In/Out: Alt + the right mouse button/scroll the middle mouse button up/down
    • Rotate Around Selected Object: Alt + the left mouse button
    • Panning: Alt + the middle mouse button
    Building our weapon – the mesh

    Now, this is the fully created ...

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