Another issue:
When I initialize an AIPath object, the error occur, and AstarPath.active.graphs[0].GetNearest(mouseClickPosition).node is always null, the related code work fine before I change the shape from Grid to Hexagonal
Path Failed : Computation Time 0.00 ms Searched Nodes 0
Error: Couldn't find a node close to the start point
Path Number 1 (unique id)
UnityEngine.Debug:LogWarning (object)
AstarPath:LogPathResults (Pathfinding.Path) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/AstarPath.cs:846)
AstarPath:<.ctor>b__93_2 (Pathfinding.Path) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/AstarPath.cs:649)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/Pathfinding/PathProcessor.cs:366)
Pathfinding.PathProcessor/<>c__DisplayClass26_0:<StartThreads>b__0 () (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/Pathfinding/PathProcessor.cs:121)
System.Threading.ThreadHelper:ThreadStart ()
transform.position assign attempt for 'Iliphar Ampeiros' is not valid. Input position is { NaN, NaN, NaN }.
UnityEngine.Transform:set_position (UnityEngine.Vector3)
Pathfinding.AIBase:FinalizePosition (UnityEngine.Vector3) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/AI/AIBase.cs:809)
Pathfinding.AIBase:FinalizeMovement (UnityEngine.Vector3,UnityEngine.Quaternion) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/AI/AIBase.cs:762)
Pathfinding.AIBase:OnUpdate (single) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/AI/AIBase.cs:506)
Pathfinding.AIBase:OnUpdate (Pathfinding.AIBase[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Core/AI/AIBase.cs:480)
Pathfinding.Util.BatchedEvents/<>c__DisplayClass15_0`1<Pathfinding.AIBase>:<Add>b__0 (object[],int,UnityEngine.Jobs.TransformAccessArray,Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Utilities/BatchedEvents.cs:177)
Pathfinding.Util.BatchedEvents:DoEvent (Pathfinding.Util.BatchedEvents/Event) (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Utilities/BatchedEvents.cs:200)
Pathfinding.Util.BatchedEvents:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.77/Utilities/BatchedEvents.cs:212)
EDIT: ah, forget to scan the graph in awake, now it works