Skip to content

Instantly share code, notes, and snippets.

@Badgerdox
Created November 17, 2019 06:01
Show Gist options
  • Save Badgerdox/9a02e76bf9f5ec660841f9af1acad5ce to your computer and use it in GitHub Desktop.
Save Badgerdox/9a02e76bf9f5ec660841f9af1acad5ce to your computer and use it in GitHub Desktop.
public static class AddressableLocationLoader
{
public static async Task GetAll(string label, IList<IResourceLocation> loadedLocations)
{
var unloadedLocations = await Addressables.LoadResourceLocationsAsync(label).Task;
foreach (var location in unloadedLocations)
loadedLocations.Add(location);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment