Method MaterializeAsync
MaterializeAsync(ContentDef)
Materialises a definition: loads its archetype, clones it, applies the merged component values.
Async because there is no synchronous load: the archetype is fetched through
GetOrLoadAsync<T>(string, AssetTier, CancellationToken) and the report is returned alongside the instance, since an
out parameter cannot cross an await.
public static Task<(GameObject Instance, ContentMaterializer.Report Report)> MaterializeAsync(ContentDef def)
Parameters
defContentDef