Thanks to your line of code, this is what I got. The game is slow because the gizmo is enabled.
Characters remove tags from each other. I couldn’t think of a check to update the chart for characters that are worth to update the tag.
I want to try the following. Assign different tags to all characters, where I write the parameters. Assign and remove different tags from a node.
Here’s how I did it.
int tagMaskZone3=(1 << 3); var zone = new GraphUpdateObject(bigCollider.bounds); zone.setTag = tagMaskZone3; zone.modifyTag = true; AstarPath.active.UpdateGraphs(zone);
Will this code work? I need to add another tag to an existing set of tags.
zone.setTag =zone.setTag | tagMaskZone3;
And how to remove the “tagMaskZone3” tag from “zone.setTag”? The textbook says only how to reset everything.
And then how to remove all nodes with tags from the BFS “list” to which I assigned the tag?