您的位置:首页 > 其它

移动平台各种路劲总结

2016-06-27 12:39 162 查看
string loadPath = "file:///" + Application.persistentDataPath + "/" + info.path + djResPostfix;

            WWW www = new WWW(loadPath);

            yield return www;

            if(www.error == null && www.assetBundle.mainAsset != null)

            {

                Debug.Log("end _loadResByPath" + loadPath);

            }

            oneResLoadInfo.resObj = www.assetBundle.mainAsset;

            oneResLoadInfo.isLoadEnd = true;

            www.assetBundle.Unload(false);
            www = null;

Andriod和Ios平台读取persistentDataPath目录

#if UNITY_EDITOR

        string filepath ="file:///" + Application.streamingAssetsPath + "/AngerHeroIcon/" + ID + ".png";

#elif UNITY_IPHONE

 string filepath = "file:///" + Application.streamingAssetsPath+"/AngerHeroIcon/" + ID + ".png";

#elif UNITY_ANDROID

 string filepath = Application.streamingAssetsPath+"/AngerHeroIcon/" + ID + ".png";

#endif

Andriod和Ios平台读取streamingAssetsPath 目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: