unity 解决乱码_Unity3d中IOS应用出现乱码怎么办?
釋放雙眼,帶上耳機(jī),聽(tīng)聽(tīng)看~!
很多朋友都問(wèn)小編Unity3d中IOS9應(yīng)用出現(xiàn)亂碼怎么辦?下面是小編給大家分享的一篇Unity3d中IOS9應(yīng)用出現(xiàn)亂碼的處理方法,感興趣的朋友跟小編一起來(lái)了解一下吧!
我們來(lái)看具體如何操作
static public void yaheifont()
{
uf = AssetDatabase.LoadAssetAtPath("Assets/yahei.prefab",typeof( UIFont)) as UIFont;
UnityEngine.Object[] objs = Selection.GetFiltered (typeof(UnityEngine.Object), SelectionMode.DeepAssets);
foreach (UnityEngine.Object _obj in objs)
{
string path = AssetDatabase.GetAssetPath(_obj);
Debug.Log("objname:"+_obj.name);
UnityEngine.Object[] arr = AssetDatabase.LoadAllAssetsAtPath(path);
Debug.Log("PATH:"+path);
foreach (Object j in arr)
{
if(j.GetType()==typeof(UILabel))
{
(j as UILabel).bitmapFont = uf;
Debug.Log("dfdfd:" + j.name + ",tyep:" + j.GetType());
}
}
EditorUtility.SetDirty(_obj);
}
AssetDatabase.SaveAssets();
}
以上就是關(guān)于Unity3d中IOS9應(yīng)用出現(xiàn)亂碼的處理方法了,想必都了解了吧,更多相關(guān)內(nèi)容請(qǐng)繼續(xù)關(guān)注技術(shù)狗。
總結(jié)
以上是生活随笔為你收集整理的unity 解决乱码_Unity3d中IOS应用出现乱码怎么办?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 日本为什么没有电动车?
- 下一篇: mysql5.5 配置_MySQL5.5