Ejemplo n.º 1
0
 private static void TrackAssetIndexChanges(string[] updated, string[] deleted, string[] moved)
 {
     if (updated.Concat(deleted).Any(u => u.EndsWith(".index", StringComparison.OrdinalIgnoreCase)))
     {
         assetIndexes = SearchDatabase.Enumerate("asset").ToList();
     }
 }
Ejemplo n.º 2
0
        private static void TrackAssetIndexChanges(string[] updated, string[] deleted, string[] moved)
        {
            updated = updated.Where(u => u.EndsWith(".index", StringComparison.OrdinalIgnoreCase)).ToArray();
            deleted = deleted.Where(u => u.EndsWith(".index", StringComparison.OrdinalIgnoreCase)).ToArray();
            var loaded = assetIndexes != null?assetIndexes.Select(db => AssetDatabase.GetAssetPath(db)).ToArray() : new string[0];

            if (updated.Except(loaded).Count() > 0 || loaded.Intersect(deleted).Count() > 0)
            {
                assetIndexes = SearchDatabase.Enumerate("asset").ToList();
            }
        }
Ejemplo n.º 3
0
 private static void UpdateObjectIndexes()
 {
     m_ObjectIndexes = SearchDatabase.Enumerate("scene", "prefab").ToList();
 }