2015年12月21日

利用WWW类获取Text并且在unityUGUI的Text中显示

摘要: 先创建一个txt的文本,另存为修改一下格式改成UEF—8的。然后放入服务器或者本地都行。然后进行读取。上代码using UnityEngine.UI;using System.IO;public class GetBundle : MonoBehaviour {public Text mytext;... 阅读全文

posted @ 2015-12-21 17:16 萨瓦迪卡麦兜兜 阅读(1130) 评论(0) 推荐(0) 编辑

2015年12月16日

利用WWW类获取图片并且在unityUGUI的Image中显示

摘要: 因为最进遇到过这样问题。怎么动态来修改UGUI中的image呢,怎么来获取这个组件呢 。using UnityEngine;using System.Collections;using UnityEngine.UI;public class GetSprite : MonoBehaviour { ... 阅读全文

posted @ 2015-12-16 11:05 萨瓦迪卡麦兜兜 阅读(1470) 评论(0) 推荐(0) 编辑

导航