摘要: UI Root红色窗口的大小其实就是Game的窗口大小,它随着Game窗口的大小变化而变化。 阅读全文
posted @ 2015-09-16 20:47 liufeiyue 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 同一个atlas里通过spriteName设置图片UISprite sprite = gameObject.GetComponent();sprite.spriteName = "XXX"; 阅读全文
posted @ 2015-09-16 19:25 liufeiyue 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/vitah/p/3897664.html(以后,参考链接和作者将在文章首部给出,转载请保留此部分内容) 参考链接:http://www.narkii.com/club/thread-299977-1.html,作者:纳金网 比巴卜; 参考链接:... 阅读全文
posted @ 2015-09-16 19:18 liufeiyue 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1.建立一个sprite,自动包含了UISprite(script)组件,然后添加一个UIButton(Script)组件。建立test脚步,主要代码如下,绑定在AudioManager2。 public UISprite u;3.u = this.transform.FindChild("mute... 阅读全文
posted @ 2015-09-16 18:30 liufeiyue 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 1.UISprite(Scripte)中的Sprite属于private不能直接替换2.可以利用UIButton(Script)的Sprites属性进行切换 public UISprite u;(将相应的button对象拖到u变量中)u.GetComponent().normalSprite = "... 阅读全文
posted @ 2015-09-16 10:14 liufeiyue 阅读(336) 评论(0) 推荐(0) 编辑