コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public void Setup(AsyncOperationHandle Handle, string Name, AddressableCatalogueManager.LoadCounter _loadCounter = null)
 {
     Text.text   = "Downloading dependencies for " + Name;
     loadCounter = _loadCounter;
     SetHandle   = Handle;
 }