Пример #1
0
 void ProcessAsset(AssetProcessData <Object> data)
 {
     if (!string.IsNullOrEmpty(_abortOnScript) && data.asset.name.Contains(_abortOnScript))
     {
         Pipeline.AbortProcess(_currentProcessId, "Aborted: script matches " + _abortOnScript);
     }
     else
     {
         Debug.LogFormat("Found script {0}/{1}: {2}", data.progress.index, data.progress.assetCount, data.metadata.path);
         _guiProgress.OnUpdateProgressCallback(data);
     }
     Repaint();
 }
Пример #2
0
 protected override void OnAdd(GUnit unit)
 {
     _processData = unit.GetData <AssetProcessData>();
 }
Пример #3
0
 protected override void OnRemove(GUnit unit)
 {
     _processData = null;
 }
Пример #4
0
 public virtual void OnUpdateProgressCallback <T>(AssetProcessData <T> data) where T : Object
 {
     UpdateProgress(data.progress);
 }