Hi, the AIPath.cs script contains the definition “protected Path path;”. I have been changing this to “public Path path;” in order to make my own code work:
public Pathfinding.AIPath playerAIPath;
This is a manually created link to the player object’s AIPath component. Which is used link this:
playerAIPath.path.vectorPath.Count;
Essentially I just need to expose the path’s vectorPath.count, but every time I update A* Pathfinding Project I have to make it public again. This makes me think there might be a smoother way to achieve my goals. Can anyone point a newbie in the right direction? Thanks!