Exemplo n.º 1
0
 protected override void Dispose(bool bManaged)
 {
     if (!_disposed)
     {
         Debug.LogFormat("UBuiltinAsset {0} released [{1}]", _assetPath, bManaged);
         _disposed = true;
         JobScheduler.DispatchMain(() =>
         {
             ResourceManager.GetAnalyzer()?.OnAssetClose(_assetPath);
         });
     }
 }
 protected override void Dispose(bool bManaged)
 {
     if (!_disposed)
     {
         Debug.LogFormat($"UBuiltinAsset ({assetPath}) released");
         JobScheduler.DispatchMain(() =>
         {
             ResourceManager.GetAnalyzer().OnAssetClose(assetPath);
         });
         _disposed = true;
     }
 }
 protected override void Dispose(bool bManaged)
 {
     if (!_disposed)
     {
         // Debug.LogFormat("UAssetDatabaseFileListAsset {0} released {1}", _assetPath, bManaged);
         _disposed = true;
         JobScheduler.DispatchMain(() =>
         {
             ResourceManager.GetAnalyzer()?.OnAssetClose(assetPath);
         });
     }
 }
Exemplo n.º 4
0
 private void Complete(JobInfo jobInfo)
 {
     if (_callback != null)
     {
         JobScheduler.DispatchMain(() =>
         {
             jobInfo.isDone    = true;
             jobInfo.isRunning = false;
             _callback(jobInfo);
         });
     }
 }
Exemplo n.º 5
0
 protected override void Dispose(bool bManaged)
 {
     if (!_disposed)
     {
         // Debug.LogFormat("UAssetBundleAsset {0} released [{1}] {2}", _assetPath, bManaged, _bundle.name);
         _disposed = true;
         JobScheduler.DispatchMain(() => // resurrecting
         {
             ResourceManager.GetAnalyzer()?.OnAssetClose(_assetPath);
             _bundle.completed -= OnBundleLoaded;
             _bundle.RemoveRef();
         });
     }
 }
Exemplo n.º 6
0
 protected override void Dispose(bool bManaged)
 {
     if (!_disposed)
     {
         JobScheduler.DispatchMain(() =>
         {
             ResourceManager.GetAnalyzer().OnAssetClose(assetPath);
             _bundle.completed -= OnBundleLoaded;
             _bundle.RemoveRef();
         });
         Debug.LogFormat($"UAssetBundleAsset ({assetPath}) released");
         _disposed = true;
     }
 }