FastGUI是NGUI的一个扩展,所以必须要有NGUI才能使用。
FastGUI主要功能是把PSD文件转为NGUI的Sprite。
首先,我们看看PSD的要求
这是一个Button的PSD结构
选择脚本->浏览->打开FastGUI/PhotoshopPlugin/FastGUIExporter.jsx
选择Export Sprites或者Export Widgets
Export Sprites与Export Widgets主要的区别在于,前者会把同一个Group内的图层分开两个图片输出,后者会把同一个Group内的图层合并为一个图片输出
把导出的文件夹拖到Unity里面
然后执行FastGUI
FastGUI Folder是PSD导出的文件夹
Parent Panel就是放在哪了
Target Atlas就是FastGUI把图片放在哪个NGUI的UIAtlas里面
设好后点按钮就行了
这是PSD脚本Export Sprite的最终效果
这是PSD脚本Export Widgets的最终效果
FastGUI主要功能是把PSD文件转为NGUI的Sprite。
首先,我们看看PSD的要求
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_1b390056e628190.png?32)
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_6d1901694fd79db.png?6)
这是一个Button的PSD结构
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_19fa6550bd35a50.png?21)
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_17debb293b83027.png?6)
选择脚本->浏览->打开FastGUI/PhotoshopPlugin/FastGUIExporter.jsx
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_b4d5148b1a55301.png?8)
选择Export Sprites或者Export Widgets
Export Sprites与Export Widgets主要的区别在于,前者会把同一个Group内的图层分开两个图片输出,后者会把同一个Group内的图层合并为一个图片输出
把导出的文件夹拖到Unity里面
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_ffcfdd0455a7827.png?7)
然后执行FastGUI
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_a2ea743f070c94c.png?9)
FastGUI Folder是PSD导出的文件夹
Parent Panel就是放在哪了
Target Atlas就是FastGUI把图片放在哪个NGUI的UIAtlas里面
设好后点按钮就行了
![](http://game.ceeger.com/forum/attachment/Mon_1211/7_8667_99f1c83a09b0924.png?30)
这是PSD脚本Export Sprite的最终效果
![](http://game.ceeger.com/forum/attachment/thumb/Mon_1211/7_8667_708b8319ef905a2.png?46)
这是PSD脚本Export Widgets的最终效果
![](http://game.ceeger.com/forum/attachment/thumb/Mon_1211/7_8667_84af5395c37a674.png?35)