NGUI 笔记

1、动态加载Atlas,并用NGUITools添加Sprite

1 UIAtlas MyAtlas = Resources.Load("MyAtlas", typeof(UIAtlas)) as UIAtlas;
2 GameObject bagBox = GameObject.Find("BagBox1");
3 NGUITools.AddSprite(bagBox, MyAtlas, "start");
NGUITools添加Sprite
posted @ 2014-07-16 21:44  gabo  阅读(145)  评论(0编辑  收藏  举报