Skip to content

Instantly share code, notes, and snippets.

@Badgerdox
Created November 17, 2019 03:41
Show Gist options
  • Save Badgerdox/350f98d68a5cc251009d568e406909ca to your computer and use it in GitHub Desktop.
Save Badgerdox/350f98d68a5cc251009d568e406909ca to your computer and use it in GitHub Desktop.
public static class AssetRefLoader
{
public static async Task CreateAssetAddToList<T>(AssetReference reference, List<T> completedObjs)
where T : Object
{
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