Pathfinding.NavGraph.ScanGraph C# (CSharp) Method

ScanGraph() public method

Consider using AstarPath.Scan () instead since this function might screw things up if there is more than one graph. This function does not perform all necessary postprocessing for the graph to work with pathfinding (e.g flood fill). See the source of the AstarPath.Scan function to see how it can be used. In almost all cases you should use AstarPath.Scan instead.
public ScanGraph ( ) : void
return void
		public void ScanGraph () {
			
			if (AstarPath.OnPreScan != null) {
				AstarPath.OnPreScan (AstarPath.active);
			}
			
			if (AstarPath.OnGraphPreScan != null) {
				AstarPath.OnGraphPreScan (this);
			}
			
			ScanInternal ();
			
			if (AstarPath.OnGraphPostScan != null) {
				AstarPath.OnGraphPostScan (this);
			}
			
			if (AstarPath.OnPostScan != null) {
				AstarPath.OnPostScan (AstarPath.active);
			}
		}