Author Topic: NGUI with Unity Sprite packer  (Read 3971 times)

alex.miron

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
NGUI with Unity Sprite packer
« 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.

alex.miron

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NGUI with Unity Sprite packer
« Reply #1 on: September 15, 2014, 08:04:10 AM »
It's working now with UI2DSprites only.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI with Unity Sprite packer
« Reply #2 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.