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");
本文共 269 字,大约阅读时间需要 1 分钟。
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");
转载于:https://www.cnblogs.com/gabo/p/3849745.html