NGUI Atlas, Atlas Type Reference

 

在NGUI中,通过创建图集及引用图集,实际使用时指定引用图集而非具体图集本身,可以创建多语言,或高配低配版本资源包。

NGUI Atlas
http://www.cnblogs.com/answerwinner/p/3848074.html

UI Atlas
Atlas Type Reference

You can have one atlas simply point to another one. This
is useful if you want to be able to quickly replace the
contents of one atlas with another one, for example for
swapping an SD atlas with an HD one, or replacing an
English atlas with a Chinese one. All the sprites
referencing this atlas will update their references to the
new one.

UIAtlas mainUIAtlas = Resources.Load("Atlases/Main UI", typeof(UIAtlas)) as UIAtlas;
UIAtlas mainUIAtlasReference = Resources.Load("Atlases/Main UI Reference", typeof(UIAtlas)) as UIAtlas;
mainUIAtlasReference.replacement = mainUIAtlas;

 

UIAtlas Class Reference
http://www.tasharen.com/ngui/docs/class_u_i_atlas.html

NGUI: UIAtlas
http://www.tasharen.com/?page_id=120

转载于:https://www.cnblogs.com/elfnaga/p/5363647.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值