Exemple #1
0
        private IndexArtifact[] InitializeIndexArtifacts(IList <string> paths)
        {
            var artifacts = new IndexArtifact[paths.Count];

            for (int i = 0; i < paths.Count; ++i)
            {
                artifacts[i] = new IndexArtifact(paths[i], AssetDatabase.AssetPathToGUID(paths[i]));
            }
            return(artifacts);
        }
        private IndexArtifact[] CreateArtifacts(IList <string> assetPaths)
        {
            var artifacts = new IndexArtifact[assetPaths.Count];

            for (int i = 0; i < assetPaths.Count; ++i)
            {
                artifacts[i] = new IndexArtifact(assetPaths[i], AssetDatabase.GUIDFromAssetPath(assetPaths[i]));
            }
            return(artifacts);
        }
        private void ReportWarning(IndexArtifact a, string artifactIndexSuffix, params string[] paths)
        {
            var assetPath = AssetDatabase.GUIDToAssetPath(a.guid);

            Console.WriteLine($"Cannot find search index artifact for {assetPath} ({a.guid}{artifactIndexSuffix})\n\t- {string.Join("\n\t- ", paths)}");
        }