unity商店中的A* Pathfinding Project插件,判断两个点之间能否正常导航通行?
需要使用PathUtilities.IsPathPossible(GraphNode node1,GraphNode node2) 如果有从 node1 到 node2 的可步行路径,则返回true。 此方法非常快,因为它仅使用预先计算的信息。 以下是示例代码 GraphNode node1 AstarPath.active.GetNearest(point1, …
2025-09-26