I was wondering if there was a way to Count the number of Areas created after i do a scan of the scene? I feel it has something to do woth area ID, but not sure how to access… thank you in advance
Hi
You could do something like this:
HashSet<uint> areas;
AstarPath.active.data.GetNodes(node => {
if(node.Walkable) areas.Add(node.Area);
});
return areas.Count;