您当前的位置: 首页 >  unity

程序员正茂

暂无认证

  • 3浏览

    0关注

    283博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Unity遍历AassetBundle中的资源

程序员正茂 发布时间:2019-05-19 18:14:05 ,浏览量:3

 foreach (var assetBundleName in AssetDatabase.GetAllAssetBundleNames())
        {
            foreach (var assetPathAndName in AssetDatabase.GetAssetPathsFromAssetBundle(assetBundleName))
            {
                string nameWithoutPath = assetPathAndName.Substring(assetPathAndName.LastIndexOf("/") + 1);
                string name = nameWithoutPath.Substring(0, nameWithoutPath.LastIndexOf("."));
                Debug.Log(name);
            }
        }

 

关注
打赏
1660743125
查看更多评论
立即登录/注册

微信扫码登录

0.0346s