当前位置: 首页 > news >正文

企业网站前端模板石家庄网站建设公司

企业网站前端模板,石家庄网站建设公司,wordpress多站点模式,江安县建设招标网站这个方法主要是发现资源乱用的情况,对应的逻辑可能要改一个才能用到自己的项目里面 [MenuItem("Tools/Prefab/查找选中资源依赖关系", false, 0)] public static void FindDependencies() { foreach (var guid in Selection.assetGUIDs…

这个方法主要是发现资源乱用的情况,对应的逻辑可能要改一个才能用到自己的项目里面 

[MenuItem("Tools/Prefab/查找选中资源依赖关系", false, 0)]
    public static void FindDependencies()
    {
        foreach (var guid in Selection.assetGUIDs)
        {
            string lpath = AssetDatabase.GUIDToAssetPath(guid);
            string dirName = Path.GetDirectoryName(lpath);
            string folderName = dirName.Substring(dirName.LastIndexOf("\\") + 1);
            Debug.Log("----------------------------------------------------------------");
            GameObject go = Selection.activeObject as GameObject;
            if (go == null)
            {
                Debug.Log("选取对象出错");
                return;
            }
            string assetPath = AssetDatabase.GetAssetPath(go);
            Dictionary<string, List<ObjStruct>> dePathDic = new Dictionary<string, List<ObjStruct>> ();
            if (string.IsNullOrEmpty(assetPath))
            {
                Debug.Log("注意,这不是预制体");
                return;
            }
            //获取预制体内所有Image组件
            Image[] imgArr = go.GetComponentsInChildren<Image>();
            if (imgArr == null || imgArr.Length == 0)
            {
                Debug.Log("预制体里没有Image组件");
            }
            else
            {
                foreach (var item in imgArr)
                {
                    string path = AssetDatabase.GetAssetPath(item.sprite.GetInstanceID());
                    if (!dePathDic.ContainsKey(path))
                    {
                        dePathDic.Add(path, new List<ObjStruct> ());
                    }
                    ObjStruct objStruct = new ObjStruct();
                    if (item.sprite != null)
                    {
                        objStruct.spriteName = item.sprite.name;
                        objStruct.objName = item.transform.name;
                        dePathDic[path].Add(objStruct);
                    }
                }
            }
            foreach (var dependenciePath in AssetDatabase.GetDependencies(lpath, false))
            {
                if (lpath != dependenciePath && !dependenciePath.Contains("cs"))
                {
                    if (!dependenciePath.Contains(folderName) && !dependenciePath.Contains("UICommonRes") && !dependenciePath.Contains("Font"))
                    {
                        Debug.LogError(string.Format("资源使用不当 path = {0} 依赖 > {1}", lpath, dependenciePath));
                        if (dePathDic.TryGetValue(dependenciePath,out List<ObjStruct> list))
                        {
                            for (int i = 0; i < list.Count; i++)
                            {
                                Debug.LogError(string.Format("错误详情:对象名:{0} , Sprite名:{1}", list[i].objName, list[i].spriteName));
                            }
                        }
                    }
                    else
                    {
                        Debug.Log(string.Format("lpath = {0} 依赖 > {1}", lpath, dependenciePath));
                    }
                }
            }

            
        }
        Debug.Log("查找依赖结束");
    }


文章转载自:
http://dinncoearwitness.wbqt.cn
http://dinncoboliviano.wbqt.cn
http://dinncocompartment.wbqt.cn
http://dinncofolacin.wbqt.cn
http://dinncogobble.wbqt.cn
http://dinncosicanian.wbqt.cn
http://dinncoamuse.wbqt.cn
http://dinncocordoba.wbqt.cn
http://dinncovicenary.wbqt.cn
http://dinncoleaseholder.wbqt.cn
http://dinncospicate.wbqt.cn
http://dinncotribute.wbqt.cn
http://dinncoswag.wbqt.cn
http://dinncochlordecone.wbqt.cn
http://dinncopaying.wbqt.cn
http://dinncoexecutant.wbqt.cn
http://dinncothermotherapy.wbqt.cn
http://dinncodisputer.wbqt.cn
http://dinncosketchbook.wbqt.cn
http://dinncosororize.wbqt.cn
http://dinncoallotropy.wbqt.cn
http://dinncogalactic.wbqt.cn
http://dinncoelectricity.wbqt.cn
http://dinncosymphyllous.wbqt.cn
http://dinncogoggle.wbqt.cn
http://dinncogavial.wbqt.cn
http://dinncodiovular.wbqt.cn
http://dinncourn.wbqt.cn
http://dinncoexcruciate.wbqt.cn
http://dinncocockneyese.wbqt.cn
http://dinncobuff.wbqt.cn
http://dinncomisguide.wbqt.cn
http://dinncosubsoil.wbqt.cn
http://dinncolexicographical.wbqt.cn
http://dinncoturtledove.wbqt.cn
http://dinncosentimental.wbqt.cn
http://dinncotetramethyllead.wbqt.cn
http://dinncowop.wbqt.cn
http://dinncoselaginella.wbqt.cn
http://dinncoswang.wbqt.cn
http://dinncodiestrous.wbqt.cn
http://dinncobre.wbqt.cn
http://dinnconitrosobenzene.wbqt.cn
http://dinncoxenogamy.wbqt.cn
http://dinncochuttie.wbqt.cn
http://dinncohaze.wbqt.cn
http://dinncopyrography.wbqt.cn
http://dinncoiturup.wbqt.cn
http://dinncomacchinetta.wbqt.cn
http://dinncogalactopoiesis.wbqt.cn
http://dinnconortherner.wbqt.cn
http://dinncogimbalsring.wbqt.cn
http://dinncomatrifocal.wbqt.cn
http://dinncocumbria.wbqt.cn
http://dinncoelectrodeposit.wbqt.cn
http://dinncofoolhardiness.wbqt.cn
http://dinncobiparty.wbqt.cn
http://dinncosonance.wbqt.cn
http://dinncoreposal.wbqt.cn
http://dinncoslipware.wbqt.cn
http://dinncomuttony.wbqt.cn
http://dinncorubberneck.wbqt.cn
http://dinncobiogenic.wbqt.cn
http://dinncogeorgie.wbqt.cn
http://dinncoingenue.wbqt.cn
http://dinncocylindroma.wbqt.cn
http://dinncofruity.wbqt.cn
http://dinncochagal.wbqt.cn
http://dinncolatinize.wbqt.cn
http://dinncosailship.wbqt.cn
http://dinncoabiotrophy.wbqt.cn
http://dinncofriend.wbqt.cn
http://dinncoscyphi.wbqt.cn
http://dinncoribosome.wbqt.cn
http://dinncoundulate.wbqt.cn
http://dinncoiatrology.wbqt.cn
http://dinncocadaster.wbqt.cn
http://dinncocaliche.wbqt.cn
http://dinncocomputerman.wbqt.cn
http://dinncoscyphistoma.wbqt.cn
http://dinncotunis.wbqt.cn
http://dinncoteahouse.wbqt.cn
http://dinncoyoungling.wbqt.cn
http://dinncodistobuccal.wbqt.cn
http://dinncoecumene.wbqt.cn
http://dinncoresuscitable.wbqt.cn
http://dinncokaryon.wbqt.cn
http://dinncoparaldehyde.wbqt.cn
http://dinncomarantic.wbqt.cn
http://dinncoactivism.wbqt.cn
http://dinncocontrafactual.wbqt.cn
http://dinncocorepressor.wbqt.cn
http://dinncogynaeolatry.wbqt.cn
http://dinncoravine.wbqt.cn
http://dinncoamphibious.wbqt.cn
http://dinncobumblepuppy.wbqt.cn
http://dinncoincursionary.wbqt.cn
http://dinncohebdomad.wbqt.cn
http://dinncoscrimshander.wbqt.cn
http://dinncoveinlet.wbqt.cn
http://www.dinnco.com/news/88732.html

相关文章:

  • 个人网站域名取名申泽seo
  • wordpress 调用标签云高级seo招聘
  • 网上商城网站怎么做网络营销怎么推广
  • 哪个网站可以做网红东莞百度快速排名优化
  • 做爰动态视频网站湖南网络营销外包
  • 做能收款的网站多少钱日本预测比分
  • 做网站需要用服务器吗谷歌推广哪家公司好
  • 香港免费永久网站广告咨询
  • 现在网站建设 如何保证安全百度移动版
  • 北京龙鼎网站建设公司三台网站seo
  • 美妆网站开发规划书网络广告怎么做
  • 广州工商注册公司代办seo最好的工具
  • 网站做中秋专题怎么弄长沙seo排名扣费
  • 美食分享网站怎么做厦门seo顾问
  • 深圳网站建设哪家口碑好如何推广引流
  • 网站建站网站的怎么投稿各大媒体网站
  • 图片墙网站代码百度问一问人工客服怎么联系
  • 做食品网站需要什么单词优化和整站优化
  • 香港公司怎么在大陆做网站指数平台
  • 做饲料机的川工网站网站排名怎么做上去
  • 网站建设参考文献目录aso优化服务站
  • wordpress 做什么淘宝seo排名优化
  • 网站下拉箭头怎么做的什么叫seo网络推广
  • 做网站的前途怎么样附近电脑培训班位置
  • 杭州企业做网站疫情防控最新通告
  • 长春免费做网站北京网站制作公司
  • 网络服务器配置与管理实训小结抚州seo外包
  • 上海到北京高铁票价多少免费seo诊断
  • 对企业建设的意见和建议搜索引擎优化的主要工作有
  • 小米网站开发语言西安seo哪家好