Hello. I am new to the forums, but not to the A* Pathfinding Project. I am working on a horror game using the Pathfinding Project, but, recently got an error I cannot fix. The error is coming from a script called “GridGraph.cs”. This is the error I am receiving:
Assets/Programming/Scripts/CSharp/Pathfinding/GridGraph.cs(680,25): error CS1579: foreach statement cannot operate on variables of type Pathfinding.NavGraph' because it does not contain a definition for
GetEnumerator’ or is not accessible
This is the code:
foreach (GridGraph gridGraph in script.astarData.FindGraphOfType(typeof(GridGraph)))
I’d greatly appreciate any help I can get on this error. Please and thank you for your time!
–SlenderDev