Instead of loading/unloading Scenes in my Game I just activate/deactivate.
I know that Scanning happens in Awake so I need to manually Scan a Scene whenever it activates.
I tried using
AstarPath.active.Scan(); but that returns error:
NullReferenceException: Object reference not set to an instance of an object.
I can see in my editor that it is active, so not sure what is wrong.
Realized it's a singleton and added
AstarPath.active = FindObjectOfType<AstarPath>();
Then it works. Not pretty but I guess that is my only way around it.