Baking Nav Mesh on RunTIme?

I’ve been making a game with a procedurally generated world and I want to add enemies that are controlled by NavMeshAgent but I cannot find a way to bake a nav mesh once generating is finished.
I tried using NavMeshComponents but it prints out an error saying script cannot be added on an object since there is an error in or namespace is different than a name of script.
Anyone know how I can make this work?
Or even some other way of making AI in Unity 3D?
Thanks!

Hi,

you can use A* Pathfinding Project Pro to generate navmeshes in game mode.