Table of Contents

Method EnsureContentLoaded

Namespace
GrindFest
Assembly
GrindFest.dll

EnsureContentLoaded()

Makes sure the content database is loaded before a test reads it, and returns false when this platform cannot do that synchronously.

ContentDB.Load() is editor/test-only by design — a player has no synchronous content load, a browser cannot block on one — so calling it in a player throws InvalidOperationException. That is what produced the two InvalidOperationException failures in the 2026-09-20 WebGL run. Tests that need the content call this instead and leave with a clear line:

if (!EnsureContentLoaded()) { yield break; }
protected bool EnsureContentLoaded()

Returns

bool