Author Topic: Ability to manually define atlas coordinates gone?  (Read 3622 times)

mtran003

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Ability to manually define atlas coordinates gone?
« on: September 16, 2014, 10:31:43 AM »
I just upgraded to version 3.7 and am alarmed to find that a major feature I use heavily is now gone -- or hidden in a poorly designed UI.

I don't use Texture Packer (long story) so I usually just make my atlas using Fireworks and then Add/Delete my sprites coordinates and name using the UIAtlas Panel tool as shown on this page:  http://www.tasharen.com/?page_id=120

My Question:  I have an atlas png file that I created manually... how can I manually define the sprite coordinates?

On a related note, does NGUI have a Auto-splicer line the built in Unity sprite (multiple) tool?  Or, alternatively, is there a way to leverage the atlas data that the Unity auto splicer tool create within NGUI?

Thanks in advance,
Manny

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ability to manually define atlas coordinates gone?
« Reply #1 on: September 17, 2014, 11:33:32 AM »
It's still where it has always been. Select the atlas, choose a sprite, and you can change the dimensions (specified in pixels). Which version did you upgrade from?

You can use Unity's sprites with NGUI. ALT+SHIFT+D to make a UI2DSprite.

mtran003

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Ability to manually define atlas coordinates gone?
« Reply #2 on: September 18, 2014, 10:16:04 PM »
I see that I can change the dimensions of existing sprites, but if I needed to "Add" a new sprite dimension from scratch, how do I do this?  I upgraded from 2.0.4 but this is a new Project I'm starting with the new version.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Ability to manually define atlas coordinates gone?
« Reply #3 on: September 19, 2014, 08:29:16 PM »
Ah, there is no "Add". The Add functionality was there in a very old version of NGUI as the original way of defining sprites -- before the Atlas Maker was ever created.

Texture packer can save your atlas definition as TXT, which you can then import as an atlas. You say you didn't use it, so your other option is to use Unity's atlas-creating functionality. You can create a sprite sheet from a single image using Unity 4.5 2D sprites. You can then draw them using NGUI by using UI2Dsprites as I mentioned in the previous post.