Table of Contents

Method TryGetOrRequest

Namespace
GrindFest.Content
Assembly
GrindFest.dll

TryGetOrRequest<T>(string, out T)

"Give me this if it is resident; if it is not, start acquiring it so the next call finds it."

The third accessor, for the cases that are neither "must have it" (Get<T>(string), which throws) nor "just asking" (TryGet<T>(string, out T), which is silent). A miss is reported once per address and the work carries on without the piece — a generator loses one prop, a drop loses one item — instead of blocking a frame or throwing where the caller cannot recover.

What the warning lists is exactly the set some scope should acquire, so the list is a work queue rather than a mystery. Both platforms take this path identically: there is no version of this that works on desktop and fails in a browser.

public static bool TryGetOrRequest<T>(string address, out T asset) where T : Object

Parameters

address string
asset T

Returns

bool

Type Parameters

T