示例#1
0
    private string[] GetAllPrefabPath()
    {
        AssetBundleManifest manifest = abLoader.GetManifest();

        string[]      allBundles    = manifest.GetAllAssetBundles();
        List <string> allPrefabPath = new List <string>();

        foreach (string abPath in allBundles)
        {
            if (abPath.EndsWith(".prefab" + abExt))
            {
                allPrefabPath.Add(abPath.Substring(0, abPath.Length - abExt.Length));
            }
        }
        return(allPrefabPath.ToArray());
    }