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

Get Building an FPS Game with Unity 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.