Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

PSD to NGUI automatic tool [Reviewing]

Discussion in 'Assets and Asset Store' started by gblue1223, Sep 14, 2013.

  1. Raphael-Jeongho-Eom

    Raphael-Jeongho-Eom

    Joined:
    Sep 8, 2012
    Posts:
    36
    Yes it support 3.7.3.
     
  2. Raphael-Jeongho-Eom

    Raphael-Jeongho-Eom

    Joined:
    Sep 8, 2012
    Posts:
    36
    I think you should to check the layer names.
    A same layer name share a same image.
    For instance,

    A. layer1@button ----- alien image
    B. layer1@sprite ----- wheel image

    When you set layer names like above, both A and B will show 'alien image'.
    If you want to B shows 'wheel image', you have to set the layer name of B
    like this 'layer2@sprite'.
     
  3. rushil133

    rushil133

    Joined:
    Nov 21, 2012
    Posts:
    19
    yes.. you are right the issue was due to the improper layer naming !!
    btw Is there anyway of converting Psd layer into NGUI widgets during run time in mobile device without manually assigning psd files in Unity Editor?
     
  4. Raphael-Jeongho-Eom

    Raphael-Jeongho-Eom

    Joined:
    Sep 8, 2012
    Posts:
    36
    I'm glad to solve the problem.
    Unfortunately it is not possible that the layers to the widgets.
    NGUI does not designed for runtime creation.
    Accordingly, I prepare PSD to Unity2D these days and it will support runtime creation of GUI or 2D.
    But I'm not sure when the package comes out because I have a main job right now.
     
  5. crazyfan

    crazyfan

    Joined:
    Sep 2, 2014
    Posts:
    7
    hi magic,I have to say PSD2NGUI is a great tool,we save a lot time by using it.when I use this tool, I have some problems in font size.It seems that the font size is smaller than that I setted in photoshop.And the color also is different.I dont know if using Chinese font cause it.By the way, I want to know that when I setted the font format in photoshop, it will be same in unity?I hope u can answer for me, thanks.
     
  6. Raphael-Jeongho-Eom

    Raphael-Jeongho-Eom

    Joined:
    Sep 8, 2012
    Posts:
    36
    Thank you for using PSD2NGUI.
    For now, PSD2NGUI support only one font which linked on the PSD2NGUI window.
    So, if you set a font in photoshop and type some text by the font, size and appearance can be different in Unity3D.

    Also a color information from a font doesn't support now.
    You can set a color by '@color=ff112233' command instead.
    Sorry to encounter such this problem.
     
  7. crazyfan

    crazyfan

    Joined:
    Sep 2, 2014
    Posts:
    7
    All the text use the same font that linked on the PSD2NGUI window.
    If there any way to set the font size, such as some command?
     
  8. Raphael-Jeongho-Eom

    Raphael-Jeongho-Eom

    Joined:
    Sep 8, 2012
    Posts:
    36
    There is no command for size of a font but, you can edit the size of a font in the source which located in PsdLayerCommandParser.cs line 163.
    Code (csharp):
    1.  
    2. this.fontSize = Mathf.FloorToInt(this.area.height / arr.Length * 0.92f);
    3.  
    You can increase the number(0.92f) to greater number.
     
  9. crazyfan

    crazyfan

    Joined:
    Sep 2, 2014
    Posts:
    7
    I will try this.Thank u very much.
     
  10. crazyfan

    crazyfan

    Joined:
    Sep 2, 2014
    Posts:
    7
    Hi Magic, I find that the version 2.3.0 cant create scrollbar sucessfully, just the version 2.4.1 can do this?
     
  11. Kafar

    Kafar

    Joined:
    Nov 29, 2012
    Posts:
    220
    Hi,

    I need to know if this asset run on Unity 5.
    Thanks
     
  12. Nymea

    Nymea

    Joined:
    Jul 15, 2015
    Posts:
    3
    This is not working in latest version of Unity (2018.3) It keeps returning error messages that NetworkView is obsolete