Categories
PlayMaker Unity

PlayMaker and NavMesh

Either I’m blind, or PlayMaker doesn’t come with an Action for the Unity NavMesh feature.

In either case, it’s only a few lines of code, which you can find below.

The only thing you may want to change, depending on how you’re using the action, is whether or not to include the  Finish() method in there. This will exit the state if you have the transition set up, and you may or may not want to do that.

Here is the code: