How to use and set tags on nodes?

I am currently developing a 2d traffic simulation with a generated road. I have discovered about tags and what it can be used for. I can use them for setting the car which lane to drive on. However, I am confused on how to use them for avoidance since all nodes are set to Basic Ground and have no idea on how to set them for the tag I want.

Does the a* pathfinding version of tags match with unity’s gameobject tag or not? If not, how can I set the node to the tag that I want (like left lane or right lane)? Also, do I install the graphupdatescene on the pathfinder or on the lane tile?

Hi

This package is not great for a traffic simulation. I’m sure it can be done, but it is really not built for that.

You can read more about tags and how to set them here: Working with tags - A* Pathfinding Project
These are pathfinding tags, which are distinct from Unity GameObject tags.

1 Like