public void UpdateOrAdd(PostprocessorData d) { if (assetProcessedWith == null) { assetProcessedWith = new List <PostprocessorData>(); } for (int i = 0; i < assetProcessedWith.Count; ++i) { if (assetProcessedWith[i].importDefinitionGUID == d.importDefinitionGUID && assetProcessedWith[i].moduleName == d.moduleName) { PostprocessorData p = assetProcessedWith[i]; p.assemblyName = d.assemblyName; p.typeName = d.typeName; p.version = d.version; assetProcessedWith[i] = p; return; } } assetProcessedWith.Add(d); }
public void UpdateProcessing(PostprocessorData d) { m_ImporterPostprocessorData.UpdateOrAdd(d); }