Author Topic: nGUI scripts with 4.3 sprites  (Read 3537 times)

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
nGUI scripts with 4.3 sprites
« on: December 07, 2013, 06:08:14 PM »
I love all of the nGUI helper scripts, but really like the new sprite system in Unity 4.3.  Is there any way to make them work nicely together... or is this just not possible because they aren't UISprites?  I especially enjoy the auto-atlasing and drag and drop sprites.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: nGUI scripts with 4.3 sprites
« Reply #1 on: December 07, 2013, 06:33:21 PM »
NGUI needs features that are a part of Unity 4.5. The system in 4.3 was not meant to be used for anything other than the built-in functionality. You can't use auto-atlassing feature in 4.3, for example... but you can use existing sprite sheets (one texture containing many sprites already in it).

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
Re: nGUI scripts with 4.3 sprites
« Reply #2 on: December 08, 2013, 02:02:16 PM »
So in order to use nGUI with Sprite Renderers I have to wait until 4.5?  I'm guessing this means it will be a long while off since we're still on 4.3?

Just to be perfectly clear.... for now my choices are use nGUI as is, or write my own helper functions for SpriteRenderers from scratch?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: nGUI scripts with 4.3 sprites
« Reply #3 on: December 08, 2013, 04:35:51 PM »
You can use the new sprite system as-is, and you will get the full benefit from it if you:

1. Don't use atlassing.
2. Have sprites all come in as one sprite sheet.

Unity 4.5 will let you:

1. Use atlassing.
2. Have sprites come from different textures.
3. Have slicing info be specified on sprite on texture import.

helmesjo

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 116
    • View Profile
Re: nGUI scripts with 4.3 sprites
« Reply #4 on: February 26, 2014, 01:48:26 AM »
Just a quick question about that: Should one go with the Unity 2D Sprite and hope for a close release of unity... 4.5 (?) to stay "future-proof"? If one can live with the current drawbacks that is... Or should I just stay true with nGUI-sprites?

I just saw U2DSprite as an alternative when I updated to 3.x, but can't find any good info on what it is, how well it works with nGUI, why to use it etc.

Thanks!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: nGUI scripts with 4.3 sprites
« Reply #5 on: February 26, 2014, 03:42:33 AM »
I'd stay with what works until the next fancy thing has been tested for whatever problems might arise in the beginning, to be honest.

helmesjo

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 116
    • View Profile
Re: nGUI scripts with 4.3 sprites
« Reply #6 on: February 26, 2014, 04:06:06 AM »
Yeah, that sounds reasonable. (:

Ty!