/** Blocks until this path has been calculated and returned. * Normally it takes a few frames for a path to be calculated and returned. * This function will ensure that the path will be calculated when this function returns * and that the callback for that path has been called. * * Use this function only if you really need to. * There is a point to spreading path calculations out over several frames. * It smoothes out the framerate and makes sure requesting a large * number of paths at the same time does not cause lag. * * \note Graph updates and other callbacks might get called during the execution of this function. * * \code * Path p = seeker.StartPath (transform.position, transform.position + Vector3.forward * 10); * p.BlockUntilCalculated(); * // The path is calculated now * \endcode * * \see This is equivalent to calling AstarPath.BlockUntilCalculated(Path) * \see WaitForPath */ public void BlockUntilCalculated() { AstarPath.BlockUntilCalculated(this); }