Created
November 17, 2019 06:01
-
-
Save Badgerdox/9a02e76bf9f5ec660841f9af1acad5ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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