Line of code: var nearest = AstarPath.active.GetNearest(newPosition); (RichAi.cs line 254)
Assets used for repro: Astar Pathfinder Pro, Character Standard Assets
1. Add cube as floor.
2. Add Ethan model and target onto floor.
3. Add astar, recast graph, snap to bounds and scan.
4. Add RichAI to Ethan model, and set target.
5. Press play and see error in console:
NullReferenceException: Object reference not set to an instance of an object
Pathfinding.RichAI.Teleport (Vector3 newPosition) (at Assets/AstarPathfindingProject/Core/AI/RichAI.cs:254)
Pathfinding.RichAI.Init () (at Assets/AstarPathfindingProject/Core/AI/RichAI.cs:233)
Pathfinding.RichAI.OnEnable () (at Assets/AstarPathfindingProject/Core/AI/RichAI.cs:225)
If I use AIPath instead, it works fine without any errors.