Exemple #1
0
    string GetBundlePath(string bundleName)
    {
        string path = Path.Combine(IPathTools.GetAssetBundlePath(), bundleName);

        path = IPathTools.StandardPath(path);
        Debug.Log(path);
        return(path);
    }
Exemple #2
0
    public IEnumerator LoadManifest()
    {
        //这里获取到了文件的路径
        assetManifestName = IPathTools.StandardPath(assetManifestName);

        WWW manifest = new WWW(assetManifestName);

        yield return(manifest);

        if (string.IsNullOrEmpty(manifest.error))
        {
            if (manifest.progress >= 1.0)
            {
                manifestloader      = manifest.assetBundle;
                assetBundleManifest = manifestloader.LoadAsset("AssetBundleManifest") as AssetBundleManifest;
                isFinishedLoad      = true;
            }
        }
        else
        {
            Debug.LogError(manifest.error);
        }
    }