public IABManifestLoader()
        {
            assetManifeset  = null;
            manifesetLoader = null;
            loadState       = 0;

            manifestPath = null;


            //file:///E:/BaiduYunDownload/Assets/Assets/StreamingAssets/AssetBundles/Windows/Windows
            manifestPath = IPathTools.GetAssetBundleFilePath(IPathTools.GetRuntimeFolder());


            if (!IFileTools.IsExistFile(manifestPath))
            {
                isUsingWWW   = true;
                manifestPath = IPathTools.GetAssetBundleWWWStreamPath(IPathTools.GetRuntimeFolder());
            }

            Debuger.Log("manifestPath ===" + manifestPath);

            Debuger.Log("manifestPath 222===" + isUsingWWW.ToString());
            // manifestPath = "C:/Users/yujie/AppData/LocalLow/JFYD/Fish/AssetBundles/Android/Android";
            //  manifestPath =  Application.persistentDataPath + "/AssetBundles/Android/Android";
            //  Debug.Log("manifestPath =111=" + manifestPath);
        }
Example #2
0
        public static string GetAssetBundleWWWStreamPath(string path)
        {
            string tmpPath = IPathTools.kAssetBundlesOutputPath + "/" + IPathTools.GetRuntimeFolder() + "/" + path;

            tmpPath = GetWWWStreamPath() + tmpPath;

            return(tmpPath);
        }
Example #3
0
        /// <summary>
        /// art/scences/
        /// </summary>    AssetBundle.LoadFromFile
        /// <param name="path">  </param>
        /// <returns></returns>

        public static string GetAssetBundleFilePath(string path)
        {
            string tmpPath = "/" + IPathTools.kAssetBundlesOutputPath + "/" + IPathTools.GetRuntimeFolder() + "/" + path;

            if (Application.platform == RuntimePlatform.WindowsEditor ||
                Application.platform == RuntimePlatform.OSXEditor)
            {
                tmpPath = GetAssetStreamPath() + tmpPath;
            }
            else
            {
                tmpPath = GetAssetPersistentPath() + tmpPath;
            }

            //  tmpPath = ITools.FixedPath(tmpPath);


            return(tmpPath);
        }