Blog FirstPersonShooter - Shooter - PC, Mac & Linux Standalone - Unity 2021.1.26f1 Personal_ DX11 1_2_2022 6_25_10 PM (2).png

Simplest way to create a First Person Shooter!

In just a few steps, learn how to make your very own First Person Shooter with multiple Guns, with different shooting range and ammunition type in Unity. Practical explanation + Code included.

Introduction:

https://vimeo.com/661486474

This is an introduction to a multiple part series covering details about how to create a Modular First Person Shooter. In the first section, we’re going to cover the following topics:

→ Introducing a Gun to the Player

→ Raycasting.

→ Implementing Muzzle Flash and Bullet Hole Textures.

→ Adding Fire Rate.

Resources:

Full Course: https://academy.eincode.com/courses/the-complete-unity-guide-3d-beginner-to-rpg-game-dev-in-c

Prerequisites:

The project has been made using Universal Render Pipeline. To properly follow, install Universal RP package from Package Manager.

This article presumes that you have basic understanding of Unity and coding with C#. We’re going to use a First Person Controller as a base. I’ve covered First Person Controller creation in the following article:

Learn how to create a First Person Controller

**Although not mandatory, it’s always useful to have an understanding of what we’re working with in-order to extend it’s functionalities.

You may also use one of the Controllers available on the Unity Asset Store.

With that out of the way, let’s get started!

1. Introducing a Gun to the Player!