Пример #1
0
        public static void SetABLabel()
        {
            //需要给AB做标记的根目录
            string strNeedSetLabelRoot = FrameWorkConst.GetABResourcesPath();

            if (!Directory.Exists(strNeedSetLabelRoot))
            {
                return;
            }
            //目录信息
            DirectoryInfo[] dirScenesDIRArray = null;
            //清空无用AR标记
            AssetDatabase.RemoveUnusedAssetBundleNames();
            DirectoryInfo dirTempInfo = new DirectoryInfo(strNeedSetLabelRoot);

            dirScenesDIRArray = dirTempInfo.GetDirectories();
            foreach (DirectoryInfo currentDIR in dirScenesDIRArray)
            {
                string tmpScenesDIR  = strNeedSetLabelRoot + "/" + currentDIR.Name; //全路径
                int    tmpIndex      = tmpScenesDIR.LastIndexOf("/");
                string tmpScenesName = tmpScenesDIR.Substring(tmpIndex + 1);        //场景名称
                JudgeDiRorFileByRecursive(currentDIR, tmpScenesName);
            }
            AssetDatabase.Refresh();
        }
Пример #2
0
 public ABLoader(string mABName, DelLoadComplete mLoadCompleteHandle)
 {
     this.assetLoader        = null;
     this.abName             = mABName;
     this.abDownLoadPath     = FrameWorkConst.GetWWWPath() + "/" + this.abName;
     this.loadCompleteHandle = mLoadCompleteHandle;
 }
Пример #3
0
 public ABManifestLoader()
 {
     this.strManiFestPath = FrameWorkConst.GetWWWPath() + "/" + FrameWorkConst.GetPlatformName();
     this.manifestObj     = null;
 }