Beispiel #1
0
        public void ScanAssetBank()
        {
            // Remove all user assets
            foreach (var item in items.Values)
            {
                if (!item.builtin)
                {
                    if (item.prefab)
                    {
                        Destroy(item.prefab);
                    }
                    if (item.thumbnail)
                    {
                        Destroy(item.thumbnail);
                    }
                    items.Remove(item.uid);
                }
            }

            // Scan user directory
            StartCoroutine(ScanDirectory(GlobalState.Settings.assetBankDirectory, () => uiList.OnFirstPage()));

            // Rebuild tags list
            tags.Clear();
            foreach (var item in items.Values)
            {
                foreach (var tag in item.tags)
                {
                    tags.Add(tag);
                }
            }
        }
Beispiel #2
0
 public void OnFirstPage()
 {
     projectList.OnFirstPage();
     UpdateButtons();
 }