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(); }
protected override void OnAdd(GUnit unit) { _processData = unit.GetData <AssetProcessData>(); }
protected override void OnRemove(GUnit unit) { _processData = null; }
public virtual void OnUpdateProgressCallback <T>(AssetProcessData <T> data) where T : Object { UpdateProgress(data.progress); }