Author Topic: Sprites bundled within NGUi atlases  (Read 6422 times)

cygnus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Sprites bundled within NGUi atlases
« on: May 30, 2012, 06:53:25 AM »
Hi,

I'm building my own atlas to use in my game to replace the fanasy one I used for testing. However can someone explain me how I could create those Glow, Beveled Outline, Bright, Dark ,... sprites? Seems they aren't part of the package. I already tried with Photoshop but can't seem to get it right.

Thanks!

n8

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: Sprites bundled within NGUi atlases
« Reply #1 on: May 30, 2012, 12:58:03 PM »
I had this same issue when I first started using NGUI.  Those types of sprites aren't terribly difficult to make in photoshop.  just create a new file that is squared off (25X25 for instance) with a transparent background.  You can use the "Rounded Rectangle Tool" to create the desired shape.  Now use the wand tool to select the inside of the rect. Create a new layer and then fill it with a gradient.  Stick to whites or grays if you want to use NGUI's ability to "tint" the sprite after its creation.  the closer to white, the closer to the true tint that you set in the inspector via NGUI. Obviously you can use your imagination here and create the darker versions (use a darker shade of gray) or go solid white or whatever to get the look you like best. 

Now save the file and import it into unity. Once imported you can include it into your own atlas. Once in the atlas, you can use NGUI's tools to specify the margins used for sliced sprites.  You will obviously just need to play around with the settings and colors until you get what you are looking for, but that is the basic workflow that I have been using with pretty good results.

hope that helps

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprites bundled within NGUi atlases
« Reply #2 on: May 30, 2012, 01:03:12 PM »
If you want you can also just open up the atlas texture and copy/paste the sprite you want out of it and into your own separate texture which you will then use to create your own atlas.

n8

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Re: Sprites bundled within NGUi atlases
« Reply #3 on: May 30, 2012, 01:32:25 PM »
i tried that on my first go around, but ultimately found it easier to create my own.  Plus now I have a better understanding of the whole process and how to tweak the textures to get the look I want.

cygnus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 12
    • View Profile
Re: Sprites bundled within NGUi atlases
« Reply #4 on: June 06, 2012, 07:53:23 AM »
Thanks, I did copy the sprites from the original atlas as I'm not used to work with Photoshop. Everything works fine now.