{"id":1789,"date":"2020-04-18T08:46:59","date_gmt":"2020-04-18T00:46:59","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1789"},"modified":"2020-09-27T11:22:43","modified_gmt":"2020-09-27T03:22:43","slug":"unity%e8%b0%83%e6%95%b4ngui%e7%9a%84%e6%89%93%e5%8c%85%e5%b7%a5%e5%85%b7%ef%bc%8c%e8%ae%a9ngui%e6%89%93%e5%8c%85atlas%e6%97%b6%ef%bc%8c%e8%87%aa%e5%8a%a8%e8%8e%b7%e5%be%97%e5%9b%be%e7%89%87%e4%b9%9d","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1789","title":{"rendered":"[Unity]\u8c03\u6574NGUI\u7684\u6253\u5305\u5de5\u5177\uff0c\u8ba9NGUI\u6253\u5305Atlas\u65f6\uff0c\u81ea\u52a8\u83b7\u5f97\u56fe\u7247\u4e5d\u5bab\u4fe1\u606f\u3002"},"content":{"rendered":"\n<p>Unity\u8bd5\u56fe\u6574\u5408\u7f8e\u672f\u6d41\u7a0b\uff0c\u4f46\u662f\u50cf\u6211\u4eec\u7684UI\u7f8e\u672f\u7ec8\u7a76\u4e0d\u53ef\u80fd\u5168\u90e8\u5728Unity\u4e2d\u5236\u4f5c\uff0c\u4e3b\u8981\u5de5\u5177\u8fd8\u662fPhotoshop<\/p>\n\n\n\n<p>\u5728\u4f7f\u7528NGUI\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u53ef\u907f\u514d\u5730\u8981\u4f7f\u7528NGU\u7684Atlas\uff0c\u4ee5\u53caSprite\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u542b\u6709\u4e5d\u5bab\u4fe1\u606f\u7684Sprite\uff0c\u4e00\u5f00\u59cb\u6211\u4eec\u662f\u5148\u5728Photoshop\u4e2d\u5207\u597d\u56fe\u4e22\u5230Unity\u4e2d\u6253\u5305\u6210Atlas\uff0c\u7136\u540e\u624b\u5de5\u53bb\u8bbe\u7f6e\u4e5d\u5bab\u4fe1\u606f\u3002<\/p>\n\n\n\n<p>\u7f8e\u672f\u518d\u4fee\u6539\u8fd9\u5f20\u56fe\uff0c\u90a3\u4e48\u9700\u8981\u518d\u4fee\u6539Atlas\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u539f\u59cb\u56fe\u7247\u662f\u4e0d\u5305\u542b\u4e5d\u5bab\u4fe1\u606f\u7684\u3002<\/p>\n\n\n\n<p>\u53c2\u8003\u4ee5\u524d\u7aef\u6e38\u7684\u505a\u6cd5\uff0c\u7f8e\u672f\u5728Sprite\u6587\u4ef6\u540e\u540e\u9762\u6dfb\u52a0\u9644\u52a0\u540e\u7f00\u4fe1\u606f\uff0c\u5728Photoshop\u4fdd\u5b58\u524d\u91cf\u597d\uff0c\u4fdd\u5b58\u65f6\u4fee\u6539\u4e00\u4e0b\u6587\u4ef6\u65f6\u5373\u53ef\uff1a<\/p>\n\n\n\n<p>\u6bd4\u5982 close_button#l4r4t2b2\uff0c\u4ee3\u8868\u8fd9\u4e2aSprite\u7684\u4e5d\u5bab\u4fe1\u606f\u662f\uff1a\u5de6\u53f34\u50cf\u7d20\uff0c\u4e0a\u4e0b2\u50cf\u7d20<\/p>\n\n\n\n<p>\u5de5\u5177\u4ee3\u7801\u4e3b\u8981\u4fee\u6539\u4e00\u4e0bUIAtlasMaker.cs\u4e2d\u7684CreateSpites<\/p>\n\n\n\n<p>\u6dfb\u52a0\u6587\u4ef6\u540d\u7684\u89e3\u6790\uff0c\u7136\u540e\u8bbe\u7f6e\u4e00\u4e0b\u4e5d\u5bab\u4fe1\u606f\u5373\u53ef\uff08\u56e0\u4e3a\u5df2\u7ecf\u6709\u4e5d\u5bab\u4fe1\u606f\u5bf9\u8c61UISpriteData\uff0c\u53ea\u8981\u4fee\u6539\u4e00\u4e0b\u5373\u53ef\uff09<\/p>\n\n\n\n<p>\u7136\u540e\u7f8e\u672f\u5f88\u723d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity\u8bd5\u56fe\u6574\u5408\u7f8e\u672f\u6d41\u7a0b\uff0c\u4f46\u662f\u50cf\u6211\u4eec\u7684UI\u7f8e\u672f\u7ec8\u7a76\u4e0d\u53ef\u80fd\u5168\u90e8\u5728Unity\u4e2d\u5236\u4f5c\uff0c\u4e3b\u8981\u5de5\u5177\u8fd8\u662fPhotosho [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1789"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1789"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1789\/revisions"}],"predecessor-version":[{"id":1790,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1789\/revisions\/1790"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}