public void DownloadDependencies(List <IResourceLocation> Content, AddressableCatalogueManager.LoadCounter loadCounter = null) { foreach (var Assets in Content) { var newbar = Instantiate(DownloadBar, gameObject.transform); var Handle = Addressables.DownloadDependenciesAsync(Assets.InternalId); newbar.Setup(Handle, Assets.InternalId, loadCounter); } }
public void Setup(AsyncOperationHandle Handle, string Name, AddressableCatalogueManager.LoadCounter _loadCounter = null) { Text.text = "Downloading dependencies for " + Name; loadCounter = _loadCounter; SetHandle = Handle; }