Ejemplo n.º 1
0
        internal void IncrementalUpdate(AssetIndexChangeSet changeset)
        {
            var it = IncrementalUpdate(-1, changeset);

            while (it.MoveNext())
            {
                ;
            }
        }
Ejemplo n.º 2
0
        private void OnContentRefreshed(string[] updated, string[] removed, string[] moved)
        {
            if (!this || settings.disabled)
            {
                return;
            }
            var changeset = new AssetIndexChangeSet(updated, removed, moved, p => !index.SkipEntry(p, true));

            if (!changeset.empty)
            {
                Log("OnContentRefreshed", changeset.all.ToArray());

                #if ENABLE_ASYNC_INCREMENTAL_UPDATES
                Progress.RunTask($"Updating {index.name} index...", null, IncrementalUpdate, Progress.Options.None, -1, changeset);
                #else
                var it = IncrementalUpdate(-1, changeset);
                while (it.MoveNext())
                {
                    ;
                }
                #endif
            }
        }