Just hitting an issue with the FloodPath, haven’t been able to get it working with this code, it always returns an error saying “You must supply a calculated FloodPath to the ‘flood’ argument”
first I construct a flood path, I used a delegate to try to have the FloodPathTracer use it when done,
floodPath = FloodPath.Construct( this.WorldPosition, OnFloodPathDelegate );
AstarPath.StartPath( floodPath );
then within the delegate,
void OnFloodPathDelegate( Path path )
{
Debug.Log("flood path done?");
FloodPathTracer floodPathTrace = FloodPathTracer.Construct( GameManager.Instance.player.transform.position, floodPath, OnFloodPathComplete );
AstarPath.StartPath( floodPathTrace );
}
“Flood path done?” is logged, but right after that is the ArgumentException, I looked into the PathState and it is ReturnQueue.
The usage for this is to periodically use FloodPath to get all nodes reachable by a save point.
Any suggestions would be much appreciated!