Table of Contents

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

worldPos Vector3
timeout float
required bool

True 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.

Returns

IEnumerator