Skip to content

Instantly share code, notes, and snippets.

@Badgerdox
Created November 17, 2019 04:15
Show Gist options
  • Save Badgerdox/ccfee45fda94e867681116bc5eea982f to your computer and use it in GitHub Desktop.
Save Badgerdox/ccfee45fda94e867681116bc5eea982f to your computer and use it in GitHub Desktop.
public static async Task CreateAssetsAddToList<T>(List<AssetReference> references, List<T> completedObjs)
where T : Object
{
foreach (var reference in references)
completedObjs.Add(await reference.InstantiateAsync().Task as T);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment