Method WaitForTerrainAt
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
WaitForTerrainAt(Vector3, float, bool)
Wait until IsTerrainReadyAt(Vector3) is true, or give up after timeout
real (unscaled) seconds.
public static IEnumerator WaitForTerrainAt(Vector3 worldPos, float timeout = 60, bool required = true)
Parameters
worldPosVector3timeoutfloatrequiredboolTrue throws on timeout - correct inside a test, which cannot mean anything without ground. False logs an error and returns, which is what the runner needs: CleanSlate runs before every test, and throwing there would abort the whole run instead of failing the tests that are actually affected.