Force a scan in script

Im trying to have a grid path finder, and i need to scan for obstacles in script as its procedurally generated. All the posts i looked at said simply to “AstarPath.active.Scan” however there doesnt seem to be a code like that in my scripts, its simply not available. Am i missing something?

Edit: I noticed you are suposed to put a “Using Pathfinding” or something similar ontop however thats not available aswell

Hi

Indeed. Doing something like:

using Pathfinding;

void Start () {
     AstarPath.active.Scan();
}

is what you should do.