How to do it...

To create a simple Action Point, follow these steps:

  1. Import the character to Unity.
  2. Put it on the scene and add a NavMesh Agent component to it.
  3. Bake the NavMesh in the scene.
  4. Create an Animator Controller and assign it to the character's Animator component.
  5. Create a float Speed parameter and a Trigger Action parameter in the controller.
  1. Drag and drop the IdleWalk, and Action animations to the controller. Make sure that the Idle animation is the default state.
  2. Create four transitions (see the following image):
    • IdleWalk with one condition: Speed parameter greater than 0.5. Has Exit Time should be set to false and TransitionDuration set to around 0.1 seconds.
    • WalkIdle with one condition: Speed parameter less than ...

Get Unity 5.x Animation Cookbook 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.