Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chris_E on December 07, 2013, 06:08:14 PM

Title: nGUI scripts with 4.3 sprites
Post by: Chris_E 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.
Title: Re: nGUI scripts with 4.3 sprites
Post by: ArenMook 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).
Title: Re: nGUI scripts with 4.3 sprites
Post by: Chris_E 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?
Title: Re: nGUI scripts with 4.3 sprites
Post by: ArenMook 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.
Title: Re: nGUI scripts with 4.3 sprites
Post by: helmesjo 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!
Title: Re: nGUI scripts with 4.3 sprites
Post by: Nicki 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.
Title: Re: nGUI scripts with 4.3 sprites
Post by: helmesjo on February 26, 2014, 04:06:06 AM
Yeah, that sounds reasonable. (:

Ty!