Author Topic: Import atlas made with Texture packer  (Read 2581 times)

nemesis06101986

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Import atlas made with Texture packer
« on: June 14, 2014, 04:15:54 PM »
OK so I know this is something that should be completely basic but I'm struggling with it much more that what I would like.

I'm generating my atlases with texture packer exporting them as PNG in Unity - Texture 2D Sprite sheet, but when I create a sprite with NGUI it does not detect the sprite sheet.

I've tried opening the Atlas maker but I can't make it to recognize my atlas.

What would be the steps to import in NGUI an atltas made with Texture packer?

Thank you very much in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Import atlas made with Texture packer
« Reply #1 on: June 15, 2014, 06:00:09 AM »
1. Create a material using the Unlit - Transparent Colored shader and the exported texture.
2. Create a game object and attach the UIAtlas script to it.
3. Specify the Material from step 1.
4. Drag the texture packer-exported text file into the "TP Import" field.
5. Save this game object as a prefab -- it's now your new atlas.

nemesis06101986

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Import atlas made with Texture packer
« Reply #2 on: June 15, 2014, 06:38:43 AM »
Great, works like a charm!