Last active
November 18, 2019 03:17
-
-
Save Badgerdox/9b5a3f1bf948f0a863d3d11867e81b34 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
private void Start() | |
{ | |
CreateAndWaitUntilCompleted("prefab"); | |
} | |
private async Task CreateAndWaitUntilCompleted(string label) | |
{ | |
var locations = await Addressables.LoadResourceLocationsAsync(label).Task; | |
await Addressables.InstantiateAsync(locations[0]).Task; | |
} |
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
private void Start() | |
{ | |
CreateAndWaitUntilCompleted("prefab"); | |
} | |
private async Task CreateAndWaitUntilCompleted(string label) | |
{ | |
var locations = await Addressables.LoadResourceLocationsAsync(label).Task; | |
foreach (var VARIABLE in locations) | |
await Addressables.InstantiateAsync(locations).Task; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment