How to do something only after "Rebuild Navigation" finishes?

Hello! I am making a game that uses a dinamic generated map and I am having some trouble with AI trying to use the navmesh while its being rebuilt. I want to create a sort of “Loading Screen” while it rebuilds navmesh, but i dont figure how to do it!
I am rebuilding navigation in game using the console command “Rebuild Navigation”.

There’s IsNavigationBeingBuilt function you can call to poll the information you need. In future we’ll supply a handy event everyone will be able to hook into.

Cheers,

–mieszko