Fix Null Reference Exceptions

In C#, one error puts fear, confusion, and frustration into the heart of every developer, especially beginners: NullReferenceException. It will look like this in your Unity console, and it will cause your game to not work. In case that screenshot isn’t clear, it reads: NullReferenceException. Object reference not set to an instance of an object … Read moreFix Null Reference Exceptions

Navigation with the Nav Mesh Part 4: Patrolling and Chasing

And as with the rest of this series, you can grab a download of the full code as it should be at the end of this part of the tutorial at the bottom of this tutorial, so you can compare your own project. Now that we’ve covered the basics of using the Nav Mesh, Nav … Read moreNavigation with the Nav Mesh Part 4: Patrolling and Chasing

Navigation with the Nav Mesh Part 1: Setup and Basic Navigation

In this series of tutorials, we’ll go through setting up Unity’s built-in Nav Mesh, which enables pathfinding and navigation without the need for complex code. Before you Begin For Intermediate Unity Developers This tutorial series is for intermediate Unity users. I won’t go into detail on Unity basics, and assume you know your way around … Read moreNavigation with the Nav Mesh Part 1: Setup and Basic Navigation

A Simple Input Manager for Keyboard, Gamepad, and Touch

In this tutorial, I will show you how to create a simple input manager to handle directional input via the keyboard, a gamepad, or on-screen touch controls. Though this tutorial only covers directional movement, it can easily be extended to add extra functionality, such as a jump button. As always, if you get stuck on … Read moreA Simple Input Manager for Keyboard, Gamepad, and Touch