Author Topic: How to add sprites sliced in Unity Sprite Editor to NGUI atlas  (Read 11905 times)

technoir

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 1
  • Posts: 27
    • View Profile
How to add sprites sliced in Unity Sprite Editor to NGUI atlas
« on: October 04, 2014, 11:50:21 AM »
Hi,

I have sliced up a sprite sheet in Unity's Sprite Editor into individual sprites but they kept as children of the main object once this is applied and cannot be dragged out separately. I was wondering how I can add the individual sprites to an NGUI atlas.

Thanks
« Last Edit: October 04, 2014, 09:41:37 PM by technoir »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to add sprites sliced in Unity Sprite Editor to NGUI atlas
« Reply #1 on: October 05, 2014, 08:59:21 AM »
You can't mix NGUI and Unity sprites. NGUI allows you to extract sprites from an atlas, but you can't do the same thing with Unity's sprite sheet. If you're using a Unity's sprite sheet, stick to using UI2DSprite to draw them and don't worry about using NGUI's atlases.

technoir

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 1
  • Posts: 27
    • View Profile
Re: How to add sprites sliced in Unity Sprite Editor to NGUI atlas
« Reply #2 on: October 06, 2014, 09:22:06 AM »
Oh I see, OK.
Would there then be a way to splice the sprites from a sprite sheet using third party software instead of Unity's editor in that case, or a tool inside NGUI, in order to get them into a workable atlas?

Thanks


Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: How to add sprites sliced in Unity Sprite Editor to NGUI atlas
« Reply #3 on: October 06, 2014, 10:09:13 AM »
Generally, you would put the individual sprites into Unity and have the atlas maker put them together to a UIAtlas for NGUI to use.

dehinrsu

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: How to add sprites sliced in Unity Sprite Editor to NGUI atlas
« Reply #4 on: April 09, 2015, 09:55:05 AM »
Oh I see, OK.
Would there then be a way to splice the sprites from a sprite sheet using third party software instead of Unity's editor in that case, or a tool inside NGUI, in order to get them into a workable atlas?

Thanks


NGUI 3 Support / Re: Sprite Sheet
« on: April 08, 2015, 08:04:49 PM »
Hi,


Sprite Animation using NGUI:
https://www.youtube.com/watch?v=ys60bEIa2zA

The video demonstrates the following:
1. How to import a sprite sheet into NGUI
2. How to import a Unity Sprite (Multiple mode) into NGUI
3. Create animation clips (Sprite animations)
4. Attach this animation clip to an NGUI sprite.

I hope this will be useful to you...

Thanks
Vijay
dehinrsu@gmail.com