23

【unity实用技能】NGUI图片镜像-【小松教你手游开发】

 6 years ago
source link: http://blog.51cto.com/13638120/2093983
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
NGUI做UI的话,有个功能很常用,比如:这样的一个界面,如果大图的话一个图集都放不下几张,这时为了省资源,美术会把这个图切9宫。不过这样依然很大,这时就会提出,如果这个图是左右相同的话,左右只出一半,另一半程序自己拼,上下相同只切上面,下面程序拼,上下左右相同的话出左上角,其余自己拼。像这个就会这么出图只出了左边。自己拼不仅蛋疼,更重要的是拼出来的界面会有黑边,并且在适配不同界面的时候黑边总是会

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK