Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: alex.miron on September 15, 2014, 05:33:51 AM

Title: NGUI with Unity Sprite packer
Post by: alex.miron on September 15, 2014, 05:33:51 AM
Hello,

I have recently started working with NGUI and I want to use Unity3d's built in sprite packer for packing my atlases.
I can not use UISprites since I can't use sprites other than those in a UIAtlas so I use UITextures and UI2DSprites.
I insert the according packing tags on every sprite but still in the memory profiler I see both the sprites and the atlases.

What is the best way to use Sprite packer with NGUI?
What kind of renderers should I use ? UISprite, UITexture or UI2DSprite ?

I have to release the game by the end of the week and the only thing I still have to do is take care of the memory problems, so it's rather urgent.
Thank you.
Title: Re: NGUI with Unity Sprite packer
Post by: alex.miron on September 15, 2014, 08:04:10 AM
It's working now with UI2DSprites only.
Title: Re: NGUI with Unity Sprite packer
Post by: ArenMook on September 16, 2014, 08:38:02 AM
Assuming you actually enabled sprite packing in Project Editor Settings, it'll just work. NGUI will use the sprites specified on UI2DSprite, and Unity will pack them automatically.