Exemplo n.º 1
0
    /// <summary>
    /// Warning!!! SLOW AF!!!  EDITOR ONLY!!!
    /// </summary>
    /// <returns></returns>
    static List <Item> GetAllItemPrefabsInProjectFolder()
    {
        //List<Item>;
        List <Item> items = AssetManagement.FindAssetsByComponent <Item>();

        Debug.Log("Items: " + items.Count);
        List <Item> itemList = new List <Item>();

        foreach (Item item in items)
        {
            itemList.Add(item);
        }
        return(itemList);
    }