Why Jumping (or any input) Doesn’t Always Work

A common issue that can plague Unity devs, especially beginners is that input doesn’t always work consistently. The most obvious manifestation of this is when your jump button doesn’t always cause your player to jump, or your shoot button doesn’t always shoot! While these symptoms can be caused by a number of things, there is … Read moreWhy Jumping (or any input) Doesn’t Always Work

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