Table of Contents

Method LoadAsset

Namespace
GrindFest
Assembly
GrindFest.dll

LoadAsset<T>(string, Action<T>, AssetTier)

Loads an address through the content platform from a coroutine test.

protected static IEnumerator LoadAsset<T>(string address, Action<T> assign, AssetTier tier = AssetTier.Definition) where T : Object

Parameters

address string
assign Action<T>
tier AssetTier

Returns

IEnumerator

Type Parameters

T

Remarks

DevTests are coroutines, so the platform's async loader is pumped frame by frame - the same shape ModAssetBundleTests already used inline for ModManager.RefreshAndReload. Nothing blocks: the task is advanced by yielding, which is also what makes it the only load that works where Addressables has no threads. The result is then read back with the resident-only accessor, because the test itself has just made the address resident - there is no synchronous loader left to call.